Skip to content

Add pattern matching support #35

Closed
@DartBot

Description

@DartBot

This issue was originally filed by paulp...@gmail.com


Another wide-spreading feature in modern programming languages (ES6, CoffeeScript) is non-strict pattern matching.

http://wiki.ecmascript.org/doku.php?id=harmony:destructuring

I'd love to see it's support in dart. Something like:

[a, b] = func()
var data = {a: 1, b: 5}
{a, b} = data
print(a) # 1

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 reporttype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions