News for hackers. Stuff that matters.
Re:Elixir for Humans Who Know Python by josevalim on Saturday February 25, 2023 @08:09AM (#34936388)
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

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

Re:Elixir for Humans Who Know Python by josevalim on Monday February 27, 2023 @06:58AM (#34955405)
FWIW, F# also has something similar to `let mut`.
Re:Elixir for Humans Who Know Python by nickjj on Sunday February 26, 2023 @10:45AM (#34946380)
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.

Re:Elixir for Humans Who Know Python by josevalim on Monday February 27, 2023 @06:58AM (#34955401)
I was not able to write a proposal that was generally accepted by the community. We are still one break-through away from that happening.