this post was submitted on 30 Sep 2023
5 points (100.0% liked)

Scala

7 readers
1 users here now

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] azthec@feddit.nl 1 points 1 year 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.