-
Notifications
You must be signed in to change notification settings - Fork 69
specify return-type along "as" #225
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
Comments
This is what I propose. For variable
|
Implicit conversion
|
We might have cases like this that has a defacto conversion path (can't think of any at the moment. Brain is slow) already. But the examples for implicit conversion above aren't so clear-cut, so we can either decide how to convert for each case, preferably with a rule or two to govern the decision for consistency, or we can label it as undefined behavior and shove it under the carpet like the creators of C and C++ did.. |
Solved with 2019/10 |
As discussed in the email regarding bytes and bytesN
Quote Boon:
A) bytes "123456" is encoded as 0x313233343536
B) bytes "12" is encoded as 0x3132
C) bytes1 0x12 is encoded as 0x1200...0 (padded to 32 bytes)
D) bytes2 0x1234 is encoded as 0x123400...0 (trailing 0s so it's padded to 32 bytes)
E) bytes2 0x1200 is encoded as 0x120000...0 (trailing 0s so it's padded to 32 bytes)
F) bytes2 0x0012 is encoded as 0x001200...0 (trailing 0s so it's padded to 32 bytes)
we need to add a return type attribute to function calls so that we do not confuse the apps when interpreting such variables.
Since we are adding this, we can get replace the "as" attribute with return-type and then cast with that.
Since July schema added in bytes, we ought to add this and then skip July in lieu of a later month.
The text was updated successfully, but these errors were encountered: