Reduce amount of infix operators #5894
benstigsen
started this conversation in
Ideas & suggestions
Replies: 1 comment 3 replies
-
|
What would be the type of this function in the new system? pub fn add(a, b) {
a + b
} |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I understand the explicitness of having
<>,+and+., but it seems absolutely silly to me, that when the types are strict, known at compile-time and the LSP can show errors before even building the project, that there's a need for these different operators... why not this:Reducing the amount of operators would reduce how explicit the language is, yes. But it wouldn't interfere with type-safety at all, it would reduce the syntactic ruleset and keep the language more in line, with many other languages, reducing the learning curve.
Beta Was this translation helpful? Give feedback.
All reactions