Skip to content

default null syntax #1233

@He-Pin

Description

@He-Pin

Motivation: when ?. is means we can call select on a nullable value, but it still throws Field does not exists exception.

What about using a obj.b? or obj['b'?] syntax to express: if bdoes not exists inobj, then returnnull` instead of an error.

  • obj.b?
  • obj["b"?]

or, we can just use std.get method

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