Re:So you're using a weird language
by kaba0 on Thursday October 06, 2022 @12:25PM
(#33110329)
> Statically typed functional languages like Haskell and OCaml allow much more correct code and reject much more wrong code
In functional code, sure. In a predominantly mutable algorithm, you fight the language more than what you gain, and sometimes, yes, the mutable approach is simpler and easier to reason about. Especially local mutability can be very readable/maintainable.
In functional code, sure. In a predominantly mutable algorithm, you fight the language more than what you gain, and sometimes, yes, the mutable approach is simpler and easier to reason about. Especially local mutability can be very readable/maintainable.