Skip to content

Add pattern matching support #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
DartBot opened this issue Oct 10, 2011 · 3 comments
Closed

Add pattern matching support #35

DartBot opened this issue Oct 10, 2011 · 3 comments
Labels
area-language Dart language related items (some items might be better tracked at github.com/dart-lang/language). closed-duplicate Closed in favor of an existing report type-enhancement A request for a change that isn't a bug

Comments

@DartBot
Copy link

DartBot commented Oct 10, 2011

This issue was originally filed by [email protected]


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

@DartBot
Copy link
Author

DartBot commented Oct 11, 2011

This comment was originally written by [email protected]


Removed Type-Defect label.
Added Type-Enhancement label.

@DartBot
Copy link
Author

DartBot commented Oct 11, 2011

This comment was originally written by [email protected]


Added Area-Language, Triaged labels.

@DartBot
Copy link
Author

DartBot commented Oct 12, 2011

This comment was originally written by [email protected]


Added Duplicate label.
Marked as being merged into #75.

@DartBot DartBot added Type-Enhancement area-language Dart language related items (some items might be better tracked at github.com/dart-lang/language). closed-duplicate Closed in favor of an existing report labels Oct 12, 2011
@kevmoo kevmoo added type-enhancement A request for a change that isn't a bug and removed type-enhancement labels Mar 1, 2016
copybara-service bot pushed a commit that referenced this issue Apr 6, 2023
… dartdoc, html, term_glyph, test, webdev, yaml_edit

Revisions updated by `dart tools/rev_sdk_deps.dart`.

boolean_selector (https://github.com/dart-lang/boolean_selector/compare/28dc03d..9fd3bae):
  9fd3bae  2023-04-04  dependabot[bot]  Bump actions/checkout from 3.3.0 to 3.5.0 (#44)

browser_launcher (https://github.com/dart-lang/browser_launcher/compare/ba4e028..ed11524):
  ed11524  2023-04-04  dependabot[bot]  Bump dart-lang/setup-dart from 1.4.0 to 1.5.0 (#40)

clock (https://github.com/dart-lang/clock/compare/93d9f56..6b2004c):
  6b2004c  2023-04-04  dependabot[bot]  Bump actions/checkout from 3.3.0 to 3.5.0 (#47)

crypto (https://github.com/dart-lang/crypto/compare/8a03816..1cb1528):
  1cb1528  2023-04-04  dependabot[bot]  Bump dart-lang/setup-dart from 1.4.0 to 1.5.0 (#142)

csslib (https://github.com/dart-lang/csslib/compare/5836863..44bfbe3):
  44bfbe3  2023-04-04  dependabot[bot]  Bump dart-lang/setup-dart from 1.4.0 to 1.5.0 (#176)

dartdoc (https://github.com/dart-lang/dartdoc/compare/1a7952b..a0755f5):
  a0755f5f  2023-04-04  Janice Collins  Fix example modifiers (#3383)

html (https://github.com/dart-lang/html/compare/57b747d..0438b26):
  0438b26  2023-04-05  Oleh Prypin  Dart 3 compatibility: turn classes into mixins (#208)

term_glyph (https://github.com/dart-lang/term_glyph/compare/f6856e2..b110501):
  b110501  2023-04-04  dependabot[bot]  Bump actions/checkout from 3.3.0 to 3.5.0 (#35)

test (https://github.com/dart-lang/test/compare/8ea4298..7832931):
  78329319  2023-04-04  Devon Carew  regenerate mono_repo (#1988)

webdev (https://github.com/dart-lang/webdev/compare/e887316..0a2804b):
  0a2804bd  2023-04-04  Elliott Brooks  Fix DevTools test (#2071)

yaml_edit (https://github.com/dart-lang/yaml_edit/compare/386fd33..5f392a1):
  5f392a1  2023-04-04  dependabot[bot]  Bump actions/checkout from 3.3.0 to 3.5.0 (#48)

Change-Id: Ib9ee434634d3116db7ada89a4c31a566a28b5600
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/293744
Reviewed-by: Konstantin Shcheglov <[email protected]>
Commit-Queue: Devon Carew <[email protected]>
Auto-Submit: Devon Carew <[email protected]>
copybara-service bot pushed a commit that referenced this issue Apr 6, 2023
Revisions updated by `dart tools/rev_sdk_deps.dart`.

http (https://github.com/dart-lang/http/compare/ffb4438..877f134):
  877f134  2023-04-06  Kevin Moore  latest CI actions (#908)

source_span (https://github.com/dart-lang/source_span/compare/b739fbf..905a167):
  905a167  2023-04-05  Natalie Weizenbaum  Add public access to a SourceFile's code units (#93)
  1806578  2023-04-05  Devon Carew  blast_repo fixes (#96)

sync_http (https://github.com/dart-lang/sync_http/compare/36a1bd0..660ad87):
  660ad87  2023-04-05  Kevin Moore  blast_repo fixes (#35)

tools (https://github.com/dart-lang/tools/compare/0304fbb..cd799be):
  cd799be  2023-04-06  Daco Harkes  [cli_config] Support non-String map keys (#73)

webdev (https://github.com/dart-lang/webdev/compare/0a2804b..22b34e3):
  22b34e35  2023-04-05  Elliott Brooks  Reset DWDS to `19.0.1-dev` after release (#2076)
  e93ad39b  2023-04-05  Elliott Brooks  Prep Webdev for release to `3.0.4` (#2075)

Change-Id: Id9413473ced284fc3479507d1fe06135404566f3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/293967
Commit-Queue: Konstantin Shcheglov <[email protected]>
Auto-Submit: Devon Carew <[email protected]>
Reviewed-by: Konstantin Shcheglov <[email protected]>
copybara-service bot pushed a commit that referenced this issue May 12, 2023
…er, mime, mockito, native, path, test, watcher, webdev, yaml_edit

Revisions updated by `dart tools/rev_sdk_deps.dart`.

browser_launcher (https://github.com/dart-lang/browser_launcher/compare/ed11524..551e101):
  551e101  2023-05-11  dependabot[bot]  Bump actions/checkout from 3.5.0 to 3.5.2 (#43)
  29a57a0  2023-05-11  Elliott Brooks  Disable test (#44)

file (https://github.com/google/file.dart/compare/b905180..e90e5ed):
  e90e5ed  2023-05-11  Bernardo Ferrari  Migrate to Dart 3 (#210)

http (https://github.com/dart-lang/http/compare/db84d12..981b63b):
  981b63b  2023-05-11  Brian Quinlan  Support the NSURLSession WebSocket API (#921)

leak_tracker (https://github.com/dart-lang/leak_tracker/compare/46a1fa0..bc7f604):
  bc7f604  2023-05-11  Polina Cherkasova  Fix typo. (#61)

logging (https://github.com/dart-lang/logging/compare/4779d7e..b75cba7):
  b75cba7  2023-05-10  Devon Carew  blast_repo fixes (#137)

matcher (https://github.com/dart-lang/matcher/compare/5890f2b..4dfd9ad):
  4dfd9ad  2023-05-10  dependabot[bot]  Bump actions/checkout from 3.5.0 to 3.5.2 (#218)

mime (https://github.com/dart-lang/mime/compare/57fbf6e..eb9d54b):
  eb9d54b  2023-05-10  Devon Carew  blast_repo fixes (#95)

mockito (https://github.com/dart-lang/mockito/compare/56173fa..51a7728):
  51a7728  2023-05-12  Copybara-Service  Merge pull request #597 from danielgomezrico:feat/returnInOrder
  7a93b61  2023-01-15  Daniel Gomez Rico  Add `returnInOrder` to `Mock`
  34da8da  2023-05-02  Nate Bosch  Import `packge:matcher` directly instead of `test_api`

native (https://github.com/dart-lang/native/compare/908e61f..64aa5b5):
  64aa5b5  2023-05-12  Daco Harkes  [native_assets_cli] Add `outDirName` (#38)
  fdcd0eb  2023-05-09  Devon Carew  contribute a PR labeler (#37)
  d44eae5  2023-05-08  Daco Harkes  Give tests on MacOS more time (#36)
  3b39e07  2023-05-04  Daco Harkes  [c_compiler] Make `logger` required (#35)

path (https://github.com/dart-lang/path/compare/1552cfd..f8d15c2):
  f8d15c2  2023-05-10  Devon Carew  blast_repo fixes (#144)

test (https://github.com/dart-lang/test/compare/0b306dd..931410c):
  931410c8  2023-05-10  Nate Bosch  Fix CI (#2014)

watcher (https://github.com/dart-lang/watcher/compare/9430592..1584936):
  1584936  2023-05-12  Brian Quinlan  Update to 1.1.0 in preparation for release. (#145)

webdev (https://github.com/dart-lang/webdev/compare/469b105..60616ba):
  60616bac  2023-05-10  Elliott Brooks  Syntax error in DCM workflow file(#2108)

yaml_edit (https://github.com/dart-lang/yaml_edit/compare/763ca94..87dcf31):
  87dcf31  2023-05-10  Devon Carew  blast_repo fixes (#53)

Change-Id: I4d25e4ccb60a86a6b5f8a66cfc6ae09f6df0a954
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/303005
Reviewed-by: Konstantin Shcheglov <[email protected]>
Auto-Submit: Devon Carew <[email protected]>
Commit-Queue: Konstantin Shcheglov <[email protected]>
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-language Dart language related items (some items might be better tracked at github.com/dart-lang/language). closed-duplicate Closed in favor of an existing report type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

2 participants