General

Profile

Hanmac (Hans Mackowiak)

  • Login: Hanmac
  • Email: hanmac@gmx.de
  • Registered on: 05/14/2011
  • Last connection: 09/13/2021

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 8 24 32

Activity

09/16/2021

04:02 PM Ruby master Feature #18172: MatchData#sublen to return the length of a substring
nobu (Nobuyoshi Nakada) wrote in #note-4:
> Hanmac (Hans Mackowiak) wrote in #note-3:
> > @nobu, isn't your `MatchD...
Hanmac (Hans Mackowiak)
01:36 PM Ruby master Feature #18172: MatchData#sublen to return the length of a substring
@nobu, isn't your `MatchData#match` the same as `MatchData#[]` ? Hanmac (Hans Mackowiak)

09/14/2021

01:47 PM Ruby master Bug #18167: JSON.load doesn't symbolize names
The Problem lies in the documentation of the load method:
``
JSON.load(source, proc = nil, options = {}) -> object
...
Hanmac (Hans Mackowiak)

07/27/2021

07:11 AM Ruby master Feature #18042: YARV code optimization
motoroller (Iskandar Gohar) wrote:
> ```ruby
> # before
> array.map(&:method1).map(&:method2)
>
> # if ...
Hanmac (Hans Mackowiak)

03/19/2021

01:05 AM Ruby master Bug #17731: Integer downflow with inject/reduce
more interesting samples:
```ruby
[-2305843009213693953,-2305843009213693953,-2305843009213693953].inject(:+)
#=...
Hanmac (Hans Mackowiak)

03/17/2021

02:50 PM Ruby master Feature #17718: a method paramaters object that can be pattern matched against
there could be a way, like `method(__method__).parameters` can return the parameters of the current method,
it is ...
Hanmac (Hans Mackowiak)
08:00 AM Ruby master Feature #17718: a method paramaters object that can be pattern matched against
@dsisnero
this is even more problematic because ruby doesn't know which parameter should be at which position ther...
Hanmac (Hans Mackowiak)

03/15/2021

08:37 PM Ruby master Feature #17718: a method paramaters object that can be pattern matched against
the ArgumentError can be raised manually when going to raise an Exception anyway
@nobu the problem i see there rig...
Hanmac (Hans Mackowiak)
08:08 AM Ruby master Feature #17718: a method paramaters object that can be pattern matched against
you want `**args`
```ruby
def getParam(**args)
case args
in {zip: zip}
p "zip"
in {state: s, city: ...
Hanmac (Hans Mackowiak)

03/02/2021

04:17 PM Ruby master Feature #17663: Enumerator#with, an alternative to Enumerator#with_object
i had a similar problem when i wanted to make Symbol to_proc use parameters, i would have done something like `:to_s.... Hanmac (Hans Mackowiak)

Also available in: Atom