this post was submitted on 30 Sep 2023
7 points (88.9% liked)

Scala

336 readers
1 users here now

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 11 months ago

I don't do pure FP, but do value the scala concept to write immutable by default unless there's a good reason not to (usually efficiency, inner-loop stuff). While refactoring old code (most was originally java) I gradually convert vars to vals, but the old mutable code still works too, it's multi-paradigm. What matters most for reasoning is readability, scala3 really helps with this.