I think a challenge here is that we're creating entirely new syntax. There 
isn't any support in the language today for `.` or `..` as leading 
characters, and I don't know that on its own this scenario is so common as 
to warrant entirely new syntax. In particular `..Another` I think is just 
generally less good than `Some.Module.Another.Part`, the extra characters 
aren't onerous to write and they improve readability because I don't need 
to look elsewhere to compute the module being imported.

On Thursday, November 21, 2024 at 1:59:53 PM UTC-5 Brandon Gillespie wrote:

>
> So in elixir. From the module "Some.Module.Part"
>
> Synonymous reference to 'current':
>
>    import __MODULE__.More
>    import .More
>    import Some.Module.Part.More
>
> Similarly, walking up the tree:
>
>    import ..Another.Part
>    import Some.Module.Another.Part
>
>
>

-- 
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 visit 
https://groups.google.com/d/msgid/elixir-lang-core/8e1a70ed-eff8-47b9-97e2-249785a4c0cbn%40googlegroups.com.

Reply via email to