Replies: 2 comments 5 replies
-
ReScript first and foremost tries to be familiar to JS developers. And while let in ReScript is immutable, it is at least a familiar keyword. There was already a discussion about this topic in the forum: https://forum.rescript-lang.org/t/let-keyword-needed/2899 |
Beta Was this translation helpful? Give feedback.
-
It also requires making the language white-space sensitive, which is a massively invasive change. All the languages you mention are. There are "tokens" in all these languages similar to Not that I'm against white-space sensitivity, but it's a fundamental language decision that needs to be considered from the very beginning. Trying to shoe-horn it in afterwards will likely create lots of inconsistencies and confusion. |
Beta Was this translation helpful? Give feedback.
-
let
keyword looks noisy/redundant each time we need to define a variable/function:Is it possible to ditch it or at least make it optional? So the code gets better without it:
Purescript (Haskell), Coffeescript, Python do not use keywords to declare/define something which is nice.
So
let
looks more like legacy from OCaml.Beta Was this translation helpful? Give feedback.
All reactions