Skip to content

Suggestion: remove ?check and the yet-to-implement forwarding operator #9098

Closed
@DartBot

Description

@DartBot

This issue was originally filed by @tomyeh


IMO, it is not worth to introduce such kind of complexity to the language. There is nothing hard to implement without them.

It actually reminds me the chaos of undefined and null found in JavaScript. Sure, it helps some very specific cases, but, at the end, it only confuses the developers.

For example, it is too subtle and error-prone, if the following statement behaves different (assume it takes different actions based on ?check)

foo(abc);
foo(abc, null);

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-languageDart language related items (some items might be better tracked at github.com/dart-lang/language).closed-duplicateClosed in favor of an existing report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions