Re:Elixir for Humans Who Know Python
by out_of_protocol on Saturday February 25, 2023 @06:29PM
(#34941537)
If only functional languages with immutable variables had some kind of "unsafe" section where you could actually mutate stuff...
Rust approach looks good btw, with "let" making immutable vars and longer "let mut" for mutable variables
FWIW, F# also has something similar to `let mut`.
Jose, are there still plans to modify Elixir at the language level to be potentially closer to the Python implementation?
I know you started a proposal once around the time when we made that repo.
For example, I could argue for hours about the benefits of immutability, but I still believe that imperative loops are clearer than functional ones. There is even a repository with solutions for nested traversals in different languages and the Python one is my preferred by some margin: https://github.com/josevalim/nested-map-reduce-traversal