[#92070] [Ruby trunk Feature#15667] Introduce malloc_trim(0) in full gc cycles — sam.saffron@...
Issue #15667 has been updated by sam.saffron (Sam Saffron).
3 messages
2019/04/01
[ruby-core:92453] [Ruby trunk Feature#15799] pipeline operator
From:
nobu@...
Date:
2019-04-28 01:26:43 UTC
List:
ruby-core #92453
Issue #15799 has been updated by nobu (Nobuyoshi Nakada).
duerst (Martin D=FCrst) wrote:
> As for the assignment, just using parentheses looks confusing to me. It's=
clear we can't use `>=3D` or `|=3D`, but `|>=3D` or some other combination=
would be much clearer than just parentheses.
OK, I separated the right-assign to https://github.com/nobu/ruby/tree/featu=
re/rassgn-pipeline,
and another operator https://github.com/nobu/ruby/pull/new/feature/rassgn-f=
unnel.
----------------------------------------
Feature #15799: pipeline operator
https://bugs.ruby-lang.org/issues/15799#change-77802
* Author: nobu (Nobuyoshi Nakada)
* Status: Open
* Priority: Normal
* Assignee: =
* Target version: =
----------------------------------------
Implemented the pipeline operator `|>`, a topic of "ruby committers vs the =
world" in RubyKaigi 2019.
Also a casual idea of rightward assignment.
```ruby
1.. |> take 10 |> map {|x| x*2} |> (x)
p x #=3D> [2, 4, 6, 8, 10, 12, 14, 16, 18, 20]
```
https://github.com/nobu/ruby/tree/feature/pipeline
-- =
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:[email protected]?subject=3Dunsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>