News for hackers. Stuff that matters.
Re:Why is F# code so robust and reliable? by high_na_euv on Tuesday September 24, 2024 @06:10AM (#41634963)
I feel like immutability is overrated as hell

Robust result type benefits give way more

Re:Why is F# code so robust and reliable? by fire_lake on Tuesday September 24, 2024 @06:46AM (#41635161)
Immutability and types go hand in hand. Why? Well with immutability you can do more modelling of your domain as data and then the type system helps you manipulate this data only in valid ways. No type system (I am aware of) can model and check mutable domain models.
Re:Why is F# code so robust and reliable? by AdieuToLogic on Tuesday September 24, 2024 @10:47PM (#41643228)
> I feel like immutability is overrated as hell

Logic defined in terms of immutability can trivially support "undo" and "replay" functionality, amongst other more interesting workflows such as event streaming.

Logic defined in terms of mutable collaborations cannot do so with the same ease.