You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The current informal (not enforced by the parser) case convention is to use camelCase for values and CamelCase for types and contracts.
Describe the solution you'd like
As decided during the standardization meeting, adopt the same convention as Rust: snake_case for values and CamelCase for types/contracts. For now, this means changing the stdlib, examples and tests to reflect this new convention. Enforcing this convention at parsing time is out of scope of this specific issue (and may not even be possible if we merge type and values syntax).
The text was updated successfully, but these errors were encountered:
This renames all builtins and standard library functions to conform to
a snake case convention, as per decision recorded in #493. This also
adapts examples and tests to this change. All functions have been
renamed the way you'd expect, except the following:
* `fromPred` -> `from_predicate`
* `typeOf` -> `typeof` (like in C)
* `fieldsOf` -> `fields` (the `_of` is redundant for a function)
* `valuesOf` -> `values` (the `_of` is redundant for a function)
Closes#493
Is your feature request related to a problem? Please describe.
The current informal (not enforced by the parser) case convention is to use camelCase for values and CamelCase for types and contracts.
Describe the solution you'd like
As decided during the standardization meeting, adopt the same convention as Rust: snake_case for values and CamelCase for types/contracts. For now, this means changing the stdlib, examples and tests to reflect this new convention. Enforcing this convention at parsing time is out of scope of this specific issue (and may not even be possible if we merge type and values syntax).
The text was updated successfully, but these errors were encountered: