General

Profile

Hanmac (Hans Mackowiak)

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

Issues

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

Activity

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)

02/05/2021

01:27 PM Ruby master Feature #17608: Compact and sum in one step
you can use that `nil.to_i` returns 0
`a.sum(&:to_i) #=> 6`
Hanmac (Hans Mackowiak)

09/09/2020

07:24 AM Ruby master Bug #15409: OpenStruct error when attribute is called 'method'
marcandre (Marc-Andre Lafortune) wrote in #note-9:
> I opened a PR that resolves this: https://github.com/ruby/ostruc...
Hanmac (Hans Mackowiak)

08/31/2020

07:43 PM Ruby master Feature #14394: Class.descendants
More like:
```ruby
class A
end
x = Class.new(A)
y = x.new
```
~~How does the GC handle such classes?
Will they ge...
Hanmac (Hans Mackowiak)
09:02 AM Ruby master Feature #14394: Class.descendants
@fatkodima
how does `rb_class_foreach_subclass` handle anonymous classes?
if it would add them, how about adding a ...
Hanmac (Hans Mackowiak)

Also available in: Atom