Skip to content

character kind parameter #1

Open
@zbeekman

Description

@zbeekman

Shouldn't the constants have an explicit character kind parameter? There's no guarantee that the "DEFAULT" character kind is "ASCII".

I even wonder if it would make sense to set everything to ISO_10646 characters (UCS4... unicode, basically)

Also, it would be nice to have compile time polymorphism to allow non-ascii (i.e. ISO_10646 or DEFAULT when default isn't ascii) character kinds to be queried since ISO_10646 is a superset that include ASCII characters, although the bitwise representation at runtime may be different (likely padded with zeros).

The only half decent way I know to write extensive code with compile time polymorphism is using some templating/code-generation approach. I've been using Jin2For for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions