5 ms·
It is perhaps utopia but it would be nice if we could discuss those topics without falling into camps. For example, I could argue for hours about the benefits
by josevalim 4y ago
It is perhaps utopia but it would be nice if we could discuss those topics without falling into camps.
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 https://github.com/josevalim/nested-map-reduce-traversal
- out_of_protocol 4y agoIf 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
- josevalim 4y agoFWIW, F# also has something similar to `let mut`.
- nickjj 4y agoJose, 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.
- josevalim 4y agoI was not able to write a proposal that was generally accepted by the community. We are still one break-through away from that happening.