General

Profile

maedi (Maedi Prichard)

  • Login: maedi
  • Registered on: 03/25/2019
  • Last sign in: 10/26/2023

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 0 0

Like

Activity

12/06/2022

05:18 AM Ruby master Feature #18980: Re-reconsider numbered parameters: `it` as a default block parameter
I see that `$.` is already a <a href="https://docs.ruby-lang.org/en/2.4.0/globals_rdoc.html">pre-defined variable</a>... maedi (Maedi Prichard)

12/02/2022

10:43 PM Ruby master Feature #18980: Re-reconsider numbered parameters: `it` as a default block parameter
Or `_$`:
```Ruby
[1, 2, 3].map { puts _$ }
```
```
[1, 2, 3].map { puts _$ }
```
Or even just `$` by itself:
```Ru...
maedi (Maedi Prichard)

12/01/2022

06:41 AM Ruby master Feature #18980: Re-reconsider numbered parameters: `it` as a default block parameter
How about `_@`? It's your friendly neighborhood local-instance variable. I'm half joking but it is a local variable t... maedi (Maedi Prichard)

04/19/2019

10:28 AM Ruby master Misc #15723: Reconsider numbered parameters
jeremyevans says:
> we should limit support to a single argument, and use @ to represent the argument.
> blocks...
maedi (Maedi Prichard)

03/26/2019

12:20 PM Ruby master Misc #15723: Reconsider numbered parameters
I believe a bare `@` should still be implemented as it reconciles the original need of the ticket of “hard to read co... maedi (Maedi Prichard)

03/25/2019

07:38 PM Ruby master Misc #15723: Reconsider numbered parameters
Great explanation, thanks :)
If it will be multiple params `@1`, `@2`, etc. Can we also have `@` aliasing `@1`? I ...
maedi (Maedi Prichard)
06:59 PM Ruby master Misc #15723: Reconsider numbered parameters
jeremyevans0, is it possible to have method/property calls that when without an object, reference the "current item" ... maedi (Maedi Prichard)
05:43 PM Ruby master Misc #15723: Reconsider numbered parameters
Why not a single dot? (`.`) It mirrors the UNIX concept of "current directory":
```ruby
[1, 2, 3].each { puts . }
...
maedi (Maedi Prichard)
05:53 AM Ruby master Misc #15723: Reconsider numbered parameters
I think the usefulness of this feature is when there's only one parameter. When there's multiple parameters it become... maedi (Maedi Prichard)

Also available in: Atom