6 ms·
Am I the only one that really dislikes the syntax choices here?
by Kab1r 2y ago
Am I the only one that really dislikes the syntax choices here?
- antoineMoPa 2y agoNope! I'm also not convinced by it.
- mpowaga 2y agoIt appears to prioritize easier and faster typing over readability, which is a poor choice as programmers spend more time reading rather than writing code.
- pavel_lishin 2y agoStrongly agree. This is unreadable, and find it hard to believe they included this as an example of something someone would want to do: value min ceiling max floor
- afavour 2y agoHaving worked in Rust I love the pattern matching proposal. Having dabbled in Swift I like the single argument function part (though keep the brackets, please) Much of the rest I could take or leave… but then is that just because I’m not familiar with them? Stuff like the pipe operator makes sense to me but it reminds me of .reduce(): there are a few legitimate uses of it but the vast majority will be entirely-too-smart—for-its-own-good show off coding.
- Kab1r 2y agoI fell in love with pattern matching the first time I used Haskell. Having the feature is great, but I really don't like the syntax used here.
- Aeolun 2y agoI feel like there is a specific kind of person that likes all this, and there is very little overlap between those people and the people that choose to use Typescript. Kinda feels like someone was forced to work in Typescript and really wanted to scratch their own itch.