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

Add Syntax to Enter Arbitrary Bytes in String Literals #449

Open
tyingq opened this issue Aug 31, 2021 · 0 comments
Open

Add Syntax to Enter Arbitrary Bytes in String Literals #449

tyingq opened this issue Aug 31, 2021 · 0 comments

Comments

@tyingq
Copy link

tyingq commented Aug 31, 2021

I see that string literals support \t, \r, and \n. But they don't seem to support other commonly seen syntax like \xff, \0, and so on. So there's not an obvious way to get arbitrary values into a string, other than maybe reading from stdin().

I'm new to ABS, so I don't know what the limitations might be. I'm assuming a string can have null characters in it, but don't know that for sure.

Also, I see you can use unicode in string literals. I assume that means there's a default assumed encoding (utf8?), which perhaps clashes with the idea of putting in arbitrary bytes. If that's the case, I assume that has to eventually be addressed (new type, or ability to specify encoding) if you want to be able to send/receive arbitrary data over sockets or in/out of files.

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