-
Notifications
You must be signed in to change notification settings - Fork 17
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
byte literals not supported #14
Comments
@jayvdb any thought on what Ruby construct this would map to? |
https://stackoverflow.com/a/15843685/5037965 has three options. |
There's probably a lot to more to this than just literal support - it's just the tip of the iceberg, so to speak.
Using pack/unpack in ruby would either store the data as an array of integers or an encoded string, but if stored as a ruby String or Array, then getting the above functionality may be impractical. Depending on how well supported this needs to be, one could write |
Sounds like bytes is likely to be a lot of work. I personally am not using bytes in the projects I transpile. I just noticed it and raised the issue so it is easier for others to evaluate whether py2rb will meet their needs. |
b'a'
are emitted as is, causes a syntax error in the rubyThe text was updated successfully, but these errors were encountered: