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
Following different examples from known languages, chose the best syntax (combination permitted) by considering the most readable solution. You can also make a different proposal.
C++'s syntax looks the best if you want to declare the type that's going to be returned; it just seems kinda intuitive to declare the premises/return type of the function at first with the input then coming inside of parentheses. Otherwise, Js seems the most intuitive because it says it's a function, does the same thing with the parentheses and input, and keeps it more flexible. idk
C++'s syntax looks the best if you want to declare the type that's going to be returned; it just seems kinda intuitive to declare the premises/return type of the function at first with the input then coming inside of parentheses. Otherwise, Js seems the most intuitive because it says it's a function, does the same thing with the parentheses and input, and keeps it more flexible. idk
So static typing like c++ with function keyword, looks a bit like Rust and Go but in common way:
Create the Fly syntax for defining a function
Following different examples from known languages, chose the best syntax (combination permitted) by considering the most readable solution. You can also make a different proposal.
Python
Rust
C/C++
Javascript
Go
The text was updated successfully, but these errors were encountered: