• azthec@feddit.nlOP
    link
    fedilink
    arrow-up
    1
    ·
    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.