3 ms·
Looking at the examples; I am the only one who prefers the ES6 version?
by throwaway4good 5y ago
Looking at the examples; I am the only one who prefers the ES6 version?
- Deukhoofd 5y agoHalf half for me. I personally prefer the typed parameters, the if expression, and the explicit Option type of Scala, but for the class contructor and variable parameter syntax I prefer the ES6 version.
- Joeri 5y agoThat's because you're seeing ES in Scala notation. If you see what is possible with idiomatic scala, ES has no equivalents. The match statement alone is incredibly powerful, but you wouldn't think it going by these examples.
- valenterry 5y agoThere are a lot of them. Which one(s) are you talking about and why?