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

Nullptr - what analogue should be proposed in translators #14

Open
includealex opened this issue Aug 17, 2022 · 0 comments
Open

Nullptr - what analogue should be proposed in translators #14

includealex opened this issue Aug 17, 2022 · 0 comments

Comments

@includealex
Copy link

Null pointers are such a thing, that we don't tolerate (as is in README mentioned). But when we are trying to translate languages, that have such objects as null, nullptr in EOlang, we face an expected problem. We don't have such an objects in eo.
As I think, the easiest way to make such an analogue is to decorate (int) 0 object with overriden attribute as-hash, that returns -1. But it is not the best idea of the nullptr objects implementation. So, if anyone has any ideas, of how can we recreate nullptrs in EO, please leave some comments here.
Another problem for now is what should return statement (nullptr == nullptr) in cases when they point to different types or not.

@yegor256 yegor256 transferred this issue from objectionary/eo Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant