General

Profile

janfri (Jan Friedrich)

Issues

Activity

02/08/2019

04:35 PM Ruby master Feature #4475: default variable name for parameter
I like the ampersand prefix of Elixir:
```elixir
Enum.map [1, 2, 3], &(&1 + 2) # => [3, 4, 5]
Enum.reduce [1, 2,...
janfri (Jan Friedrich)

01/12/2019

03:04 PM Ruby master Feature #15526: New way to destruct an object hash
zverok (Victor Shepelev) wrote:
> 1) Ruby has very consistent "argument **deconstruction**" rules. Basically, "it is...
janfri (Jan Friedrich)

12/13/2018

10:32 AM Ruby master Feature #11076: Enumerable method count_by
Just my 2 cents: I'm not a native English speaker. Never heard the word "tally" before. So I would never remember it ... janfri (Jan Friedrich)
08:47 AM Ruby master Feature #15393: Add compilation flags to freeze Array and Hash literals
shan (Shannon Skipper) wrote:
> I had the same thought as shevy, that it'd be nice to have a:
>
> ~~~ ruby
> # f...
janfri (Jan Friedrich)

11/28/2018

10:52 AM Ruby master Misc #15342: DevelopersMeeting20181212Japan
* [Feature #10771] An easy way to get the source location of a constant janfri (Jan Friedrich)

10/22/2018

08:54 AM Ruby master Feature #15236: add support for hash shorthand
matz (Yukihiro Matsumoto) wrote:
> As a conservative old timer who does not use JavaScript at all, I still feel nega...
janfri (Jan Friedrich)

08/10/2018

11:37 AM Ruby master Feature #11076: Enumerable method count_by
As Naruse in DevelopersMeeting20180809 mentioned: It is a histogram function.
How about ```histogram_by``` (and for ...
janfri (Jan Friedrich)

05/22/2018

08:36 AM Ruby master Bug #14747: uninitialized constant Gem::PathSupport
duerst (Martin Dürst) wrote:
> I have been able to 'solve' this problem by adding
> ```
> require 'rubygems/path-s...
janfri (Jan Friedrich)

04/11/2018

02:29 PM Ruby master Feature #14672: Introduce a Date.safe_parse method
Why not just use a one line rescue?
~~~ ruby
Date.parse(some_value) rescue Date.new(2018,1,1)
~~~
It shows IMHO t...
janfri (Jan Friedrich)

08/09/2016

07:05 PM Ruby master Feature #12512: Import Hash#transform_values and its destructive version from ActiveSupport
Yukihiro Matsumoto wrote:
> `#map_v` accepted.
At first I thought it was an "adapted form" of Hash#map like Enume...
janfri (Jan Friedrich)

Also available in: Atom