-
Notifications
You must be signed in to change notification settings - Fork 3
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
allow mix-and-match U/LIdentifiers for ImportElements #122
Comments
The comment you cite also says:
And as I’ve explained before, |
Okay, so when we go through with #123, how should this be fixed?
I’m leaning towards the second one. |
IIUC, option 2 suggests a semantic difference between import simple {
lowerClass, // no error
UpperFunction // no error
}
class \IlowerClass() {}
void \iUpperFunction() {} I believe the only thing that is actually checked by the typechecker is So it seems the most consistent approach would be to keep All of this seems quite arbitrary though, based on what the typechecker currently does, so I guess I'd lean towards option 1. |
Hm, I assumed that the typechecker established this semantic difference at least on the left-hand side, that is: import java.something {
ProperClassName=classThatIsLowercaseForSomeStupidReason {
properValueName=UppercaseValueNameBecauseReasons,
UppercaseValueName=noStopWhatAreYouDoing // not allowed!
},
badClassName=WhyDoYouDoThis // not allowed!
} I don’t think keeping the aliases separate is worth much, so option 1 it is, I suppose. |
LOL, look what I wrote two years ago:
|
Done on branch |
And now merged into |
I have it on good authority that the following is valid Ceylon:
but
ceylon.ast.redhat
rejects this:The text was updated successfully, but these errors were encountered: