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
In Fram, the self parameter of the method is the first (unnamed) parameter, but the syntax suggests something different (since it might be implicit, it looks like regular named parameter). We agreed to change the syntax. With the change, we should be able to write
method add self = (extern dbl_addInt : Int -> Int -> Int) self
or even
method add = (extern dbl_addInt : Int -> Int -> Int)
The text was updated successfully, but these errors were encountered:
The parser is updated to match the new version of Surface. Miscellanous
syntax changes requested in existing issues or discussed elsewhere were
made too:
* #156 method definitions no longer treat self in a special way, but
the tests were not updated;
* #173;
* effect variable naming near the `handle` construct uses `/`;
* no more rows and `effect` or `label` fields (but the keyword `label`
still cannot be used as an identifier).
The tests and examples should mostly parse now, though not necessarily
as expected due to the changes to method definitions.
The parser is updated to match the new version of Surface. Miscellaneous
syntax changes requested in existing issues or discussed elsewhere were
made too:
* #156 method definitions no longer treat self in a special way, but
the tests were not updated;
* #173;
* effect variable naming near the `handle` construct uses `/`;
* no more rows and `effect` or `label` fields (but the keyword `label`
still cannot be used as an identifier).
The tests and examples should mostly parse now, though not necessarily
as expected due to the changes to method definitions.
In Fram, the
self
parameter of the method is the first (unnamed) parameter, but the syntax suggests something different (since it might be implicit, it looks like regular named parameter). We agreed to change the syntax. With the change, we should be able to writeor even
The text was updated successfully, but these errors were encountered: