Skip to content
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

Improve the method isValidGlobalName #7533

Conversation

bergel
Copy link
Contributor

@bergel bergel commented Oct 20, 2020

Fix #7532

@MarcusDenker MarcusDenker added the Status: Need more work The issue is nearly ready. Waiting some last bits. label Oct 20, 2020
@MarcusDenker
Copy link
Member

failing tests, e.g:

FluidClassBuilderTest>>testCreateClassWithFullExpandedDefinitionKeepsTheMinimum

self ifEmpty: [ ^ false ].

"reserverd default names"
self = 'NameOfSubclass' ifTrue: [ ^ false ].
self = 'TNameOfTrait' ifTrue: [ ^ false ].
(#('NameOfSubclass' 'MyClass' 'TNameOfTrait') includes: self) ifTrue: [ ^ false ].
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not know about this logic. But it's very surprizing. Why we can't have classes with those names? What makes them so special?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be really nice to explain it in the method comment

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bergel also it should be "reserved" - not "reserverd"

@guillep
Copy link
Member

guillep commented Dec 22, 2020

@bergel there are broken tests and pending comments in the PR, and a couple of months of inactivity. I'll close it for now, please do not hesitate to reopen it.

@astares
Copy link
Member

astares commented Dec 22, 2020

@guillep one can not reopen as outside contributor due to permissions.

@guillep
Copy link
Member

guillep commented Dec 22, 2020

I can reopen it myself if required, no problem :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Need more work The issue is nearly ready. Waiting some last bits.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

isValidGlobalName should be updated and improve
5 participants