-
-
Notifications
You must be signed in to change notification settings - Fork 648
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relative imports. #10527
Comments
I had to read that twice before I figured out that you're using |
Should this go into haxe evolution? What if someone actually calls a package "package"? |
It doesn't parse so it's safe |
Btw. in Python they simply use a import .ThatNestedOtherThing
import .subpackage.ThatNestedOtherThing |
To me it's not about keystrokes but about clarity. And there I greatly prefer the |
Yeah, keystrokes are not the issue. Primarily, I'm looking to avoid redundancy, which the version with OTOH I don't see how that extra keyword adds any clarity. It's just noise. Still, without it, the syntax looks like the kind of party trick that Haxe avoids rather consistently. |
I really like the term "party trick", and I agree. Something like this would hurt syntactic balance, which is something I care about a lot. But well, I suppose this really should go through a haxe-evolution in case anyone wants to argue the point further. I don't want to impose my own opinion here. |
Hmm. I guess we're overcomplicating things, but oh well. Next time this bothers me, I'll make the time to formulate a proposal. |
When importing things from the same package or subpackage, it would be nice if one could skip spelling out the common path.
Also, it I makes it easier to spot the relevant part of the import.
If required, I can make a proposal for this, but I wonder whether it's something we would be willing to have at all. Clearly, this is largely only useful to solve self-induced problems. Unfortunately, the practice that induces them is extremely common.
The text was updated successfully, but these errors were encountered: