3 ms·
I agree with you. What language are you doing this in?
by raspasov 6y ago
I agree with you. What language are you doing this in?
- stickfigure 6y agoMostly Java, but also Typescript and Python. The only language I use professionally that seems actively antagonistic to FP is Go. I do wish Java had made `final` the default for fields and variables. Lombok's `@Value @With` takes away a lot of the pain though.
- imtringued 6y agoLanguages with immutability by default are the best. It's kinda like safe vs unsafe in Rust. You can do lots of things with immutability or safe Rust but when you need mutability or unsafe Rust then you just add the necessary keyword. The "dangerous" parts of the application are now highly visible and neatly separated from the harmless parts.
- stickfigure 6y agoI really wish Ceylon had taken off, it was (is?) a better "better Java" than Kotlin. Aside from having intersection and union types before typescript, everything was immutable by default... and you had to type out the full word `variable` if you wanted mutability.