Skip to content

Nullptr - what analogue should be proposed in translators #14

@includealex

Description

@includealex

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions