Samuel
@samuel.fm
I wish javascript had `if let`, it's a great pattern
8 30
Samuel
I feel like there's a happy medium between JS (gets verbose for common tasks) and whatever Swift is doing
3 5
EzraπŸ¦‹
I remember reading about a project for writing Swift in the browser a while back. whatever happened with that?
EnricoπŸ€
Despite using Kotlin a lot, I only tried Kotlin compiled to JS targets briefly but it was one of my favorite programming experiences.
Orual
Yeah one of my favourite little features of Rust. `let ... if` is also super good, not sure if JavaScript has that one.
1 2
Orual
Yeah, so long as you have an else block that's the same type, you can define/assign to a variable that way. Certain ways of chaining them are currently unstable, but lots of flexibility. Kotlin also does this, btw.
1
Tom Sherman
Pattern matching, records and tuples, types as comments. Then declare the language as done, it's perfect at that point
2 1
Taha Shashtari
That, and the pipe operator. Once you get used to it in other functional programming languages, you wish every language included it.