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

Globals and nil, true, false #26

Open
smarr opened this issue Feb 1, 2020 · 0 comments
Open

Globals and nil, true, false #26

smarr opened this issue Feb 1, 2020 · 0 comments
Labels
spec Needs specification, or is specification related.

Comments

@smarr
Copy link
Member

smarr commented Feb 1, 2020

There's a question of priority for handling globals, and whether SOM has any names that are special.

nil, true, and false are very basic literals, and allowing them to be changed with System>>global:put: would be consistent with allowing Object>>become: on any object, but seems unnecessary cannon to shoot ones foot off.

Thus, my current preference is to have them simple keyword-like names, which are bound to the expected object.

Other globals, including system, classes names, etc, should be just globals that can be updated.

As discussed here:
softdevteam/yksom#90 (comment)

One could argue that this is an unnecessary complication, and there should not be any special handling of nil, true, and false, because it introduces a new concept, and needs an extra step in parser/implementations, and simply because it is inconsistent.
Still, I am currently leaning towards handling them special to match with what I assume a standard expectation is.

@smarr smarr added the spec Needs specification, or is specification related. label Feb 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spec Needs specification, or is specification related.
Projects
None yet
Development

No branches or pull requests

1 participant