--
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-co...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
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-co...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
The point is the verbs and their definitions are arbitrary without any apparent design or thought behind them
* Raynes pointed out that, in the proposed syntax, you only need to import modules (as in import Foo) that contain macros. This is no different than with require, but does using import instead of require make it more confusing, less confusing, or equally confusing?
--
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-co...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
One note: "alias" does not do anything to ensure the module is available, right? Then it will be a slight change in semantics if we go with "import Foo, as: Bar"
One note: "alias" does not do anything to ensure the module is available, right? Then it will be a slight change in semantics if we go with "import Foo, as: Bar"Correct. For this reason, it is likely alias will remain. import Foo, as: Bar will just be a convenience.
--
You received this message because you are subscribed to a topic in the Google Groups "elixir-lang-core" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/elixir-lang-core/EsiO881g2MA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to elixir-lang-co...@googlegroups.com.
--
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-co...@googlegroups.com.
But the question here is "does it ensure module availability or not?". Currently, "alias" doesn't, "import" does:
But the question here is "does it ensure module availability or not?". Currently, "alias" doesn't, "import" does:We will keep exactly those semantics. alias for anything (no checks) and import with :as will check it exists and do an alias.
--
Secondly (and most importantly) I don't see how overloading "import" is any less confusing. Effectively, you're offering two meanings of "import" — one that does not import functions and macros and one that does.
Overall, I like the proposal all except for the fact that we'd be replacing one question with another one. The question right now is "Why do we have require and import and all this noise?", we'd be making it "Why do I only have to import some modules but not others?".