this post was submitted on 30 Sep 2023
6 points (87.5% liked)

Scala

392 readers
2 users here now

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] azthec@feddit.nl 1 points 2 years ago

For sure, this has been something I learned from working in Scala that has made my code in other projects much more readable and easier to reason about. For performance reasons I may need to use mutables, but often I can keep it in the context of the function and just encapsulate it.