General

Profile

chocolateboy (Chocolate Boy)

  • Login: chocolateboy
  • Registered on: 03/19/2019
  • Last sign in: 09/27/2024

Issues

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

Activity

04/26/2019

07:54 PM Ruby Misc #15723: Reconsider numbered parameters
sawa (Tsuyoshi Sawada) wrote:
> This looks to me like splitting Ruby into two dialects and letting the programmer declare when using the non-default one. I think it would be a start of a nightmare in which Ruby has many dialects.
`...
chocolateboy (Chocolate Boy)

04/22/2019

11:09 PM Ruby Misc #15723: Reconsider numbered parameters
TL; DR: a keyword (e.g. `it`) could be used without breaking backwards-compatibility via a **pragma** e.g.:
```ruby
# implicit_parameter: true
http.get(url).then { JSON.parse(it) }
```
---
I don't mind `@1, @2` etc., given ...
chocolateboy (Chocolate Boy)

03/23/2019

01:10 AM Ruby Feature #14982: Improve namespace system in ruby to avoiding top-level names chaos
I like this idea (and the other suggestions and implementations). I proposed something similar for Crystal a while back [here](https://github.com/crystal-lang/crystal/issues/4439). chocolateboy (Chocolate Boy)

03/21/2019

08:07 PM Ruby Bug #15720 (Closed): SystemStackError when referencing a refinement in a module that isn't used
```ruby
module M1
refine Kernel do
def foo
'foo called!'
end
end
end
module M2
refine Kernel do
def bar
'bar called!'
end
end
end
using M1
puts foo
puts bar
```
Expected:
...
chocolateboy (Chocolate Boy)

Also available in: Atom