Skip to content

Property getter setting current node data #27

Open

Description

@oisanjaya

GetAs(...) method is very dangerous, because it may replace (or rather, clear) current data in node if FKind mismatched.
There should be no value setting in getter method

Activity

  1. sysrpl commented on Aug 22, 2024

    @sysrpl
    Owner

    GetAs is designed to overwrite the type if there is a mismatch. That's by design.

  2. oisanjaya commented on Aug 22, 2024

    @oisanjaya
    Author

    well, fine, if that's the case. But i still feel somewhat weird to try "get" something, i don't get what i want (because of logical error, i can accept that) and forever losing what i try to get for

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions