Skip to content

why not an NTuple? #6

@stevengj

Description

@stevengj

I was looking at the source code here, and I was a little confused about why you chose to use a primitive type. Wouldn't it be simpler to work with a definition like:

struct InlineString{N} <: AbstractString
    data::NTuple{N, UInt8}
end

similar to StaticArrays.jl?

I'm guessing you already discussed/tried this option and found it problematic for some reason, but I couldn't find any information so I wanted to double-check.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions