Terser Function Declaration Syntax without ()
#806
Closed
msadeqhe
started this conversation in
Suggestions
Replies: 1 comment 1 reply
-
BTW, I think because |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Consider this function declaration syntax:
fnc1: () -> i32 = 10;
What's your opinion if we could drop
()
from it?fnc1: -> i32 = 10;
And in lambda:
: -> i32 = 10
Finally, it would be:
a
andb
are functions, butc
is a variable.Beta Was this translation helpful? Give feedback.
All reactions