Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

atdgen-ocaml: utf-8 Vs byte-array strings #415

Open
smondet opened this issue Nov 1, 2024 · 0 comments
Open

atdgen-ocaml: utf-8 Vs byte-array strings #415

smondet opened this issue Nov 1, 2024 · 0 comments

Comments

@smondet
Copy link

smondet commented Nov 1, 2024

(I've the impression this should be an FAQ but could not find any discussion on this:)

Atdgen maps ATD “strings” to JSON strings which are supposed to be valid Unicode (UTF-8 in practice), and also directly to OCaml string values which can be arbitrary byte-arrays.

Should Mod_j functions have the option failing earlier if an input string is not valid? (I guess that would be having default or first-class-citizen validator entries? -j-pp seems to only work in one direction).

Does it make sense to add a byte-array core type to ATD?

Many tools already just don't care, should this just be documented somewhere properly?

Right now the ATD definition doc just says “Sequence of bytes or characters” …

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant