-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add pattern matching support #35
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
This comment was originally written by jat@google.com Removed Type-Defect label. |
This comment was originally written by drfibonacci@google.com Added Area-Language, Triaged labels. |
This comment was originally written by drfibonacci@google.com |
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
Closed
kevmoo
added
type-enhancement
A request for a change that isn't a bug
and removed
type-enhancement
labels
Mar 1, 2016
This was referenced Mar 10, 2016
Closed
This was referenced Mar 12, 2016
Closed
11 tasks
Closed
copybara-service bot
pushed a commit
that referenced
this issue
Mar 7, 2023
…stack_trace, stream_channel, test, tools, watcher, webdev, yaml, yaml_edit Revisions updated by `dart tools/rev_sdk_deps.dart`. async (https://github.com/dart-lang/async/compare/8deaa40..f454380): f454380 2023-03-02 Natalie Weizenbaum Add `StreamExtensions.listenAndBuffer()` (#235) dartdoc (https://github.com/dart-lang/dartdoc/compare/77d5994..98fa859): 98fa859c 2023-03-05 dependabot[bot] Bump cli_util from 0.3.5 to 0.4.0 (#3360) html (https://github.com/dart-lang/html/compare/0b8025c..08643e9): 08643e9 2023-03-02 Devon Carew prep for publishing 0.15.2 (#205) http (https://github.com/dart-lang/http/compare/1500a71..805a147): 805a147 2023-03-02 Kevin Moore Fix some spelling (#884) 5a2f036 2023-03-02 Kevin Moore Move to pkg:dart_flutter_team_lints, require Dart 2.19 (#883) 35b2cef 2023-03-02 Bahaa Fathi Yousef Corrected the spelling of "Implements" in "/http/lib/src/io_client.dart" (#871) bb86cf3 2023-02-27 Brian Quinlan Provide access to NSURLSession.sessionDescription (#881) http_multi_server (https://github.com/dart-lang/http_multi_server/compare/2cd5355..7bd190c): 7bd190c 2023-03-06 Kevin Moore Require Dart 2.19, enable and fix new team lints (#51) source_map_stack_trace (https://github.com/dart-lang/source_map_stack_trace/compare/a60ef54..45ea368): 45ea368 2023-03-07 Kevin Moore Require Dart 2.19, use pkg:dart_flutter_team_lints (#35) stream_channel (https://github.com/dart-lang/stream_channel/compare/0850515..a20ccd4): a20ccd4 2023-02-28 Kevin Moore move to pkg:dart_flutter_team_lints lints, fix code, bump min SDK (#87) test (https://github.com/dart-lang/test/compare/1307cc5..92da93a): 92da93a8 2023-03-06 Devon Carew dogfood the new setup-dart action (#1964) e49818ec 2023-03-01 dependabot[bot] Bump github/codeql-action from 2.2.1 to 2.2.5 (#1963) tools (https://github.com/dart-lang/tools/compare/28b7be8..a1c3506): a1c3506 2023-03-07 Devon Carew dogfood the new setup-dart action (#25) fb46723 2023-03-07 Elias Yishak Update pubspec.yaml (#24) 5a72344 2023-03-06 Elias Yishak Add `DashEvent` for toggling telemetry collection + send event whenever toggled (#23) watcher (https://github.com/dart-lang/watcher/compare/0ca6638..5968409): 5968409 2023-03-07 Kevin Moore blast_repo fixes (#139) e8f771a 2023-03-07 Kevin Moore Require Dart 2.19, use new team lints (#138) webdev (https://github.com/dart-lang/webdev/compare/deb801b..c007560): c007560 2023-03-06 Elliott Brooks (she/her) [MV3 Debug Extension] Show warning when clicking on debug extension for non Dart app (#2015) 1a010dc 2023-03-06 Devon Carew dogfood the new setup-dart action (#2017) 07743a3 2023-03-06 Anna Gringauze Fix exception mapping from JS to dart (#2004) eb63b31 2023-03-03 Elliott Brooks (she/her) Create a Dart Debug Extension issue template (#2014) 85f35d4 2023-03-01 Devon Carew update publishing automation integration (#2002) e748045 2023-02-28 Anna Gringauze Prepare to release webdev 3.0.1 (#2000) 5355050 2023-02-27 Elliott Brooks (she/her) [MV3 Debug Extension] Ignore page reloads for detecting navigation away from app (#1994) 4e08276 2023-02-27 Anna Gringauze Prepare to release dwds 18.0.0 (#1993) fc54d68 2023-02-27 Anna Gringauze Fix expression evaluation failures on empty scopes (#1998) 496a2b4 2023-02-27 Anna Gringauze Temporarily disable publish verification (#1996) yaml (https://github.com/dart-lang/yaml/compare/a6d8781..1ad2f49): 1ad2f49 2023-03-01 Kevin Moore Require Dart 2.19, migrate to dart_flutter_team_lints, make associated fixes (#138) 4d369fd 2023-03-01 Kevin Moore benchmark: fix output.json (#137) yaml_edit (https://github.com/dart-lang/yaml_edit/compare/998eea2..0668eb5): 0668eb5 2023-03-02 Jonas Finnemann Jensen Wrap recursively, prepare release (#28) a4ff857 2023-03-01 Mohamed Ishad Update CHANGELOG.md (#37) 2fdfbdb 2023-02-28 Mohamed Ishad Fix for issue #23 (#34) 494ad7c 2023-02-25 MikiPaul fixed typo (#36) Change-Id: I101c94575c20fca55c7440e84668413207073a32 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/287162 Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Devon Carew <devoncarew@google.com>
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 <scheglov@google.com> Commit-Queue: Devon Carew <devoncarew@google.com> Auto-Submit: Devon Carew <devoncarew@google.com>
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 <scheglov@google.com> Auto-Submit: Devon Carew <devoncarew@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
ghost
mentioned this issue
May 11, 2023
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 <scheglov@google.com> Auto-Submit: Devon Carew <devoncarew@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Closed
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
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
The text was updated successfully, but these errors were encountered: