General

Profile

x3qt (Jury Paliakou)

  • Login: x3qt
  • Registered on: 06/08/2020
  • Last sign in: 04/03/2024

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 2 3

Activity

09/22/2023

03:07 PM Ruby Feature #19898 (Open): Special syntax for instance variable assignment
Since keyword arg assignment is already DRY with omitting of argument of the same name, what about DRYing out an instance var assignment? Something like this, with "@" for example, since it's already used to assign instance vars / memoiz... x3qt (Jury Paliakou)

06/11/2020

10:46 AM Ruby Feature #16939: Alias _1 as _ for block numbered params
matz (Yukihiro Matsumoto) wrote in #note-2:
> It was the first candidate for a single anonymous block parameter. But we abandoned for the compatibility's sake. Too many existing programs use `_` as a local variable (far too more than `_...
x3qt (Jury Paliakou)
10:32 AM Ruby Feature #16945: Enable TCO by use of special form
shyouhei (Shyouhei Urabe) wrote in #note-4:
> Tell us how is it better than #12543, which is receiving negative feedbacks?
``` ruby
foo() then return
```
Syntax proposed in #12543 does not look good to me, specifically because i...
x3qt (Jury Paliakou)

06/10/2020

09:38 AM Ruby Feature #16945 (Closed): Enable TCO by use of special form
I would like to propose to create some way to enable TCO in ruby by use of special form, like (recur)[https://clojure.org/reference/special_forms#recur].
AFAIK TCO is not enabled by default because it messes with stack traces, so by i...
x3qt (Jury Paliakou)

06/08/2020

03:38 PM Ruby Feature #16939 (Closed): Alias _1 as _ for block numbered params
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....
x3qt (Jury Paliakou)

Also available in: Atom