|
|
|
|
|
by ram_rar
1739 days ago
|
|
I love new programming languages and the concepts they bring to the table. But I feel PL designers should think about Dev experience. Is it just me or is the "\" in front of parenthesis (func params) is just off-putting. I wonder, what purpose does it solve? Familiar syntax makes it much easier to adopt and easily convince devs in your team to try it for real. |
|
But I have seen at least these forms in other languages of varying popularity:
In other words, I think it is really hard to pick a syntax for this construct that every programmer is going to feel familiar with, especially if your language is supposed to cater both to programmers coming from FP and more traditional languages.Edit: Fixed error in JS example; added Java and Scala.