[#98621] Re: Function getlogin_r()'s protoype] — Bertram Scharpf <lists@...>
FYI,
3 messages
2020/06/02
[#98947] [Ruby master Feature#16986] Anonymous Struct literal — ko1@...
Issue #16986 has been reported by ko1 (Koichi Sasada).
66 messages
2020/06/26
[#98962] [Ruby master Bug#16988] Kernel.load loads file from current directory without '.' in path — misharinn@...
Issue #16988 has been reported by TheSmartnik (Nikita Misharin).
5 messages
2020/06/26
[#98969] [Ruby master Feature#16994] Sets: shorthand for frozen sets of symbols / strings — marcandre-ruby-core@...
Issue #16994 has been reported by marcandre (Marc-Andre Lafortune).
7 messages
2020/06/26
[#100117] [Ruby master Feature#16994] Sets: shorthand for frozen sets of symbols / strings
— matz@...
2020/09/25
Issue #16994 has been updated by matz (Yukihiro Matsumoto).
[ruby-core:98678] [Ruby master Feature#16939] Alias _1 as _ for block numbered params
From:
x3qt.dev@...
Date:
2020-06-08 15:38:20 UTC
List:
ruby-core #98678
Issue #16939 has been reported by x3qt (Yury Polyakov).
----------------------------------------
Feature #16939: Alias _1 as _ for block numbered params
https://bugs.ruby-lang.org/issues/16939
* Author: x3qt (Yury Polyakov)
* Status: Open
* Priority: Normal
----------------------------------------
I propose to alias `_1` as `_` for block numbered params, so the following statements should be equal –
``` ruby
[1,2,3].map { _1 ** 2 }
[1,2,3].map { _ ** 2 }
```
There is an [anonymous function argument literal](https://clojure.org/reference/reader#_dispatch) in Clojure and it feels natural all the way, hope we can have the one too.
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>