Hanmac (Hans Mackowiak)

  • Email:
  • Registered on: 05/14/2011
  • Last connection: 09/04/2019




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)


12:23 PM Ruby master Feature #16113: Partial application
the Devs should maybe look at `#curry` for this, currently it doesn't support a way to curry keyword arguments Hanmac (Hans Mackowiak)


01:48 PM Ruby master Bug #16026: `Set#count` performance issues
it might not be able to be generic in Enumerable
for example an Widget might be Enumerable with the child widgets,...
Hanmac (Hans Mackowiak)


07:09 AM Ruby master Bug #16026: `Set#count` performance issues
technically `Set#count` comes from `Enumerable`, where it has support for this too
enum.count(item) ...
Hanmac (Hans Mackowiak)


07:49 AM Ruby master Bug #16022: Enumerable#sort_by returns a swapped first and last element when the sort value is identical and collection is >= 8 elements
you can use `#with_index` there
data.sort_by.with_index { |h, i| [h[:a], i] }
this should return ...
Hanmac (Hans Mackowiak)


01:31 PM Ruby master Feature #16011: Digit grouping
because it is locale-dependent as duerst said, i think it should only be part of an intl gem where you can control th... Hanmac (Hans Mackowiak)


09:38 AM Ruby master Bug #15984: deleting from a collection while iterating on it
that totally depends on how you interate over the collection.
if you do it right, ruby has no problem with that
Hanmac (Hans Mackowiak)


03:37 PM Ruby master Feature #15940: Coerce symbols internal fstrings in UTF8 rather than ASCII to better share memory with string literals
i didn't checked the deep code, but would it help if Symbol.to_s or would return a shared string?
in t...
Hanmac (Hans Mackowiak)

Also available in: Atom