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

10041-PlatformIndependentEnvironmentatifAbsent-should-evaluate-absent-block #11365

Conversation

MarcusDenker
Copy link
Member

This PR just implements the method as described in the issue tracker entry

fixes #10041

@Ducasse
Copy link
Member

Ducasse commented Jun 15, 2022

To me PlatformIndependentEnvironment is a confusing name.
Is it a language environment or a shell like?
Then PlatformIndependent does not convey the fact that it looks like it is a Null one.
I do not really understand because if this is an OS environment what is the at:ifAbsent: method doing (I did not see any comment so I have no idea what it is supposed to do). Is it used to get variable such $HOME value?

So please at the minimum add a clear comment

@MarcusDenker
Copy link
Member Author

I just fixed the issue tracker entry. To me everything else is better to add another issue, as it is another problem.

"Gets the value of an environment variable called `aKey`. Execute aBlock if absent. 
As there is nowhere to look up the key just evaluate the given block"

- implement setEnv:value: to fullfill the sublass responsibility (it does nothing)
@MarcusDenker
Copy link
Member Author

I improved the comment a bit more

@Ducasse
Copy link
Member

Ducasse commented Jun 15, 2022

Yes let us open another issue.

@Ducasse Ducasse merged commit e174bc7 into pharo-project:Pharo11 Jun 15, 2022
@MarcusDenker MarcusDenker deleted the 10041-PlatformIndependentEnvironmentatifAbsent-should-evaluate-absent-block branch June 15, 2022 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PlatformIndependentEnvironment>>#at:ifAbsent: should evaluate absent block
2 participants