-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Fixed typos in abi-spec documentation #3386
Conversation
@nisdas I took the liberty to explain the components of X a little better. Also, I think that |
@axic, please review |
docs/abi-spec.rst
Outdated
@@ -97,7 +97,7 @@ We distinguish static and dynamic types. Static types are encoded in-place and d | |||
* ``bytes`` | |||
* ``string`` | |||
* ``T[]`` for any ``T`` | |||
* ``T[k]`` for any dynamic ``T`` and any ``k > 0`` | |||
* ``T[k]`` for any dynamic ``T`` and any ``k >= 0`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is T[0]
valid in the first place?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not? It reduces the amount of exceptional cases.
@axic to merge or not to merge? I'm fine with disallowing |
I don't mind. |
Will rebase. |
d44cb57
to
29572bd
Compare
So we went for allowing a useless construct of empty arrays? :) |
Probably it made sense merging this as is because it matches the code, but I think it should be discussed for both tuples and fixed-length arrays. Created an issue for that to receive more input. |
Actually I realized that we need empty statically-sized arrays: Otherwise, it is undefined how to encode a dynamic array of length zero. |
No description provided.