> On 25 May 2016, at 20:23, José Valim <jose.va...@plataformatec.com.br> wrote:
> 
> Constructs like imports and aliases would also perfectly fit your definition 
> of "one expression sets something into the context, and another, seemingly 
> unrelated expression depends on it". Aliases, in particular, wouldn't give 
> any compile time guarantee. And those aren't global variables either.

As I said in the previous post: "I’m not saying it’s always a bad approach, but 
I’d expect some strong reasons for choosing it.”.
I can see some reasons of the chosen approach for the cases you mention, while 
the only benefit in the context of defstruct is IMO not strong enough to 
justify the approach. In fact, I’m not even sure if it is a benefit, for the 
reasons I mentioned earlier.

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elixir-lang-core+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/86B49389-EEA1-4638-AB70-1E13F2D79C57%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to