Hacker News new | ask | show | jobs
by josevalim 1545 days ago
This is fantastic feedback. I always love reading posts like yours. Three quick notes to complement what you said:

* The formatter is always a balancing act. The behaviour you see is because people get really upset when we don't respect their line breaks (and, as you correctly said, we can't later know which newlines were introduced by us). You can try formatting more frequently to get feedback sooner (that's what I do: I usually type code with no indentation whatsoever and "collaborate" with the formatter as I go).

* I am thinking really hard about the struct problem and trying to find a balance between getting some of the guarantees of structs without having to hijack a whole module.

* Re namespaces, agreed they are not as powerful as namespaces in other languages, because they are not actual entities. However, you shouldn't run into issues. If you do recall what it was, feel free to reach out or post something in the forum. The dot notation can be useful in aliases (which a different separator would not help).

Have a good week!

2 comments

People like José are why I like the Elixir community. So many others would have taken offense and become defensive.
To be fair to you, I think you phrased your feedback much better than many on this site do. You listed a lot of pros, gave context for where you are in your journey with the platform, admitted you don't know everything yet, and focused your constructive criticism on the language and not the contributors. I just wanted to call that out as I often see the opposite here, but I do agree that José, Chris, and co do rock and lead the community really well!
+1 to the struct thing and very interested in your thoughts! I've personally taken to using protobufs instead with the excellent https://github.com/elixir-protobuf/protobuf library. They work beautifully but are obviously a lot more heavy weight. It would be nice to have more ergonomic native structs.