Hanmac (Hans Mackowiak)

  • Email:
  • Registered on: 05/14/2011
  • Last connection: 10/07/2019




12:10 PM Ruby master Bug #16395: .any? and .all? methods, flawed.
your problem is that `.any?` and `.all?` wants a value returned for the block which is truly or falsely
puts retu...
Hanmac (Hans Mackowiak)


09:38 AM Ruby master Feature #16348: Proposal: Symbol#start_with?, Symbol#end_with?, and Symbol#include?
there is also `symbol[string]` which can be used as replace for Symbol#include? Hanmac (Hans Mackowiak)


01:31 PM CommonRuby Feature #16347: InmutableObject
i don't think "Functional Programming" works the way you think in ruby.
in Ruby everything is an Object so it is a...
Hanmac (Hans Mackowiak)


08:47 AM Ruby master Bug #16344: Can be assigned to numbered parameter when after used _1
i think this has something to do with that _* parameter doesn't cause duplicate syntax errors:
def abc(_x...
Hanmac (Hans Mackowiak)


08:30 AM Ruby master Feature #16120: Omitted block argument if block starts with dot-method call
Dan0042 (Daniel DeLorme) wrote:
> ```ruby
> array3D
> .each do
> .each do
> .each do |point|
> ```
Hanmac (Hans Mackowiak)


07:24 AM Ruby master Feature #13683: Add strict Enumerable#single
Dan0042 (Daniel DeLorme) wrote:
> +1
> I actually have this as `single` in my own code, but `only` sounds fine ...
Hanmac (Hans Mackowiak)


11:34 AM Ruby master Bug #16180: Random.rand(max) ignores / is broken when max ceiling value is a float
your cases are documented there:
`When max.abs is greate...
Hanmac (Hans Mackowiak)


03:13 PM Ruby master Feature #16120: Omitted block argument if block starts with dot-method call
@Dan0042 in your list about implicit and explicit you forgot `{ foo }` depending on the method who gets the block, it... Hanmac (Hans Mackowiak)


07:36 AM Ruby master Feature #16128: Would it be possible for ruby to warn about case/when menu options separated by a trailing, but accidental ','?
the problem is that the case body can be empty, that doesn't mean the code is wrong.
and like sawa said, it probab...
Hanmac (Hans Mackowiak)


07:41 AM Ruby master Feature #16119: Optimize Array#flatten and flatten! for already flattened arrays
i see in your patch that you not only check for `Array` but for `to_ary` too, which is nice
@shevegen :
Hanmac (Hans Mackowiak)

Also available in: Atom