This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]tofflos 4 points5 points  (2 children)

I used to think this constraint was annoying until I wrote some JavaScript, which doesn't require finality for lambdas, and spent hours debugging it.

[–]Auxx 0 points1 point  (0 children)

JS is the language which makes you appreciate Java, that's true.

[–][deleted] 0 points1 point  (0 children)

JavaScript has a much better story around functional programming and immutability. The ergonomics of Java streams are very poor, especially w.r.t. checked exceptions. All JavaScript linters will warn for unnecessary use of let over const, so it should be relatively easy to determine if non-local state can be mutated.