Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-02-19 | Find pattern is no longer experimental [Feature #18585] | Kazuki Tsujimoto | |
2021-10-22 | Disable did_you_mean in TestPatternMatching | Yuki Nishijima | |
2021-08-19 | Allow omission of parentheses in one line pattern matching [Feature #16182] | Kazuki Tsujimoto | |
2021-08-15 | Show verbose error messages when single pattern match fails | Kazuki Tsujimoto | |
[0] => [0, *, a] #=> [0] length mismatch (given 1, expected 2+) (NoMatchingPatternError) Ignore test failures of typeprof caused by this change for now. | |||
2021-07-17 | One-line pattern matching is no longer experimental | Kazuki Tsujimoto | |
https://github.com/ruby/dev-meeting-log/blob/master/DevelopersMeeting20210715Japan.md#feature-17724-make-the-pin-operator-support-instanceclassglobal-variables-jeremyevans0 | |||
2021-07-15 | Add pattern matching pin support for instance/class/global variables | Jeremy Evans | |
Pin matching for local variables and constants is already supported, and it is fairly simple to add support for these variable types. Note that pin matching for method calls is still not supported without wrapping in parentheses (pin expressions). I think that's for the best as method calls are far more complex (arguments/blocks). Implements [Feature #17724] Notes: Merged: https://github.com/ruby/ruby/pull/4502 | |||
2021-03-21 | Pattern matching pin operator against expression [Feature #17411] | Kazuki Tsujimoto | |
This commit is based on the patch by @nobu. | |||
2021-01-19 | test/ruby/test_pattern_matching.rb: Avoid a warning | Yusuke Endoh | |
http://rubyci.s3.amazonaws.com/ubuntu2004/ruby-master/log/20210119T033003Z.log.html.gz ``` /home/chkbuild/chkbuild/tmp/build/20210119T033003Z/ruby/test/ruby/test_pattern_matching.rb:798: warning: assigned but unused variable - x ``` | |||
2021-01-19 | Mark pattern labels as unremoveable | Vladimir Dementyev | |
Peephole optimization doesn't play well with find pattern at least. The only case when a pattern matching could have unreachable patterns is when we have lasgn/dasgn node, which shouldn't happen in real-life. Fixes https://bugs.ruby-lang.org/issues/17534 | |||
2020-12-23 | Make NoMatchingPatternError a subclass of StandardError | Kazuki Tsujimoto | |
2020-12-13 | Reintroduce `expr in pat` [Feature #17371] | Kazuki Tsujimoto | |
2020-11-01 | Pattern matching is no longer experimental | Kazuki Tsujimoto | |
2020-10-26 | Assoc pattern matching (#3703) | Nobuyoshi Nakada | |
[Feature #17260] One-line pattern matching using tASSOC R-assignment is rejected instead. Notes: Merged-By: nobu <nobu@ruby-lang.org> | |||
2020-06-27 | Suppress "assigned but unused variable" warnings | Kazuki Tsujimoto | |
2020-06-27 | Add #deconstruct cache to find pattern | Vladimir Dementyev | |
Notes: Merged: https://github.com/ruby/ruby/pull/3104 | |||
2020-06-27 | Optimize array pattern matching by caching #deconstruct value | Vladimir Dementyev | |
Notes: Merged: https://github.com/ruby/ruby/pull/3104 | |||
2020-06-14 | Introduce find pattern [Feature #16828] | Kazuki Tsujimoto | |
2020-03-03 | Suppress an "assigned but unused variable" warning | Yusuke Endoh | |
2020-03-03 | Preserve `kwarg` flag and fix up f5c904c2a9 | Nobuyoshi Nakada | |
2020-03-02 | Suppress "assigned but unused variable" warnings | Yusuke Endoh | |
2020-03-02 | Allow newlines inside braced pattern | Nobuyoshi Nakada | |
2020-03-01 | Allow trailing comma in hash pattern | Kazuki Tsujimoto | |
2019-12-21 | test/ruby/test_pattern_matching.rb: suppress "unused variable" warning | Yusuke Endoh | |
2019-12-20 | Added `experimental` warning category | Nobuyoshi Nakada | |
[Feature #16420] | |||
2019-11-30 | Make single line pattern matching void expression | Nobuyoshi Nakada | |
Instead of returning `nil`, raise a syntax error if its value is used. [Feature #16355] | |||
2019-11-28 | Raise `NoMatchingPatternError` when expr `in` pat doesn't match | Nobuyoshi Nakada | |
* `expr in pattern` should raise `NoMatchingError` when unmatched * `expr in pattern` should return `nil`. (this is unspecified, but this feature is experimental, at all) [Feature #16355] | |||
2019-11-19 | Avoid needless object allocation | Kazuki Tsujimoto | |
2019-11-10 | Disallow omission of parentheses/brackets in single line pattern matching ↵ | Kazuki Tsujimoto | |
[Feature #16182] | |||
2019-11-08 | Define Struct#deconstruct_keys | Kazuki Tsujimoto | |
2019-11-07 | Disallow duplicated pattern variable | Kazuki Tsujimoto | |
2019-10-29 | Restore `in_kwarg` flag properly | Nobuyoshi Nakada | |
2019-09-26 | [EXPERIMENTAL] Expression with modifier `in` | Nobuyoshi Nakada | |
[Feature #15865] Notes: Merged: https://github.com/ruby/ruby/pull/2485 | |||
2019-09-01 | Make pattern matching support **nil syntax | Kazuki Tsujimoto | |
2019-06-30 | Fixed an assertion | Nobuyoshi Nakada | |
2019-05-21 | Simplified the guard against old versions | Nobuyoshi Nakada | |
2019-04-21 | test/ruby/test_pattern_matching.rb: add missing tests for NODE_DASGN, NODE_LASGN | ktsj | |
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e | |||
2019-04-21 | Add missing test for p_var_ref | ktsj | |
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e | |||
2019-04-21 | Add missing tests for p_args | ktsj | |
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e | |||
2019-04-17 | Suppress warning in assertion too | kazu | |
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e | |||
2019-04-17 | Suppress warnings in `make test-all` | kazu | |
suppress "warning: Pattern matching is experimental, and the behavior may change in future versions of Ruby!" git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e | |||
2019-04-17 | Define Struct#deconstruct | ktsj | |
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e | |||
2019-04-17 | Introduce pattern matching [EXPERIMENTAL] | ktsj | |
[ruby-core:87945] [Feature #14912] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e |