General

Profile

janfri (Jan Friedrich)

  • Login: janfri
  • Email: janfri26@gmail.com
  • Registered on: 11/26/2009
  • Last sign in: 10/02/2020

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 1 2

Activity

09/05/2020

02:05 PM Ruby Feature #17155 (Open): Add a Diggable mixin
Ruby 2.3 introduced the ```#dig``` method as a general way to access elements in deep structures. Initially it was implemented only for ```Array``` and ```Hash```. In the meanwhile also the classes ```Struct```, ```OpenStruct``` and ```S... janfri (Jan Friedrich)

08/15/2019

06:54 AM Ruby Feature #16104: Introduce merge_if and merge_if!
akash (Akash Gupta) wrote:
> The method `merge_if` / `merge_if!` will merge the passed hash in parameter only if the block evaluates to true, otherwise not. Similar to `count` method with a block.
What if the callee has more than one...
janfri (Jan Friedrich)

02/08/2019

04:35 PM Ruby 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, 3], &(&1 + &2) # => 6
```
The ampersand (&) relates more to a block in Ruby than an at-sign (@) which is associated...
janfri (Jan Friedrich)

01/12/2019

03:04 PM Ruby Feature #15526: New way to destruct an object hash
zverok (Victor Shepelev) wrote:
> 1) Ruby has very consistent "argument **deconstruction**" rules. Basically, "it is deconstructed the same way it is constructed", e.g., if you can _call_ (construct) with arguments like `meth(a, *b, c: ...
janfri (Jan Friedrich)

12/13/2018

10:32 AM Ruby 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 and has always to look at the api docs. janfri (Jan Friedrich)
08:47 AM Ruby 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:
> ...
+1
janfri (Jan Friedrich)

11/28/2018

10:52 AM Ruby 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 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 negative. It seems to work best with destructuring (left-hand side of assignments) which is nearly impossible in current Rub...
janfri (Jan Friedrich)

08/10/2018

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

05/22/2018

08:36 AM Ruby Bug #14747: uninitialized constant Gem::PathSupport
duerst (Martin Dürst) wrote:
> I have been able to 'solve' this problem by adding
> ...
Hey this is my patch. ;-) I did the same and it worked for me. But for the actual trunk it seems not longer to be necessary?
janfri (Jan Friedrich)

Also available in: Atom