General

Profile

akr (Akira Tanaka)

  • Email: akr@fsij.org
  • Registered on: 12/11/2008
  • Last connection: 10/11/2018

Issues

Projects

Activity

10/11/2018

12:26 AM Ruby trunk Feature #14784: Comparable#clamp with a range
If Ruby support clamp(range), the behavior of clamp(b...e) should be considered.
What returns x.clamp(b...e) when ...

10/10/2018

06:44 AM Ruby trunk Feature #14781: Enumerator#generate
How about "recurrence" as method name?
It is noun, though.

09/18/2018

05:12 PM Ruby trunk Bug #15138 (Open): non-symbol keyword in double splat, such as **{2 => 3}, raises TypeError or not
I found that non-symbol keyword in double splat, such as `**{2 => 3}`,
raises TypeError in a situation and doesn't r...
03:46 PM Ruby trunk Bug #15078: Hash splat of empty hash should not create a positional argument.
My fourth idea: FL_USERn flag in `{}'.
02:34 PM Ruby trunk Bug #15078: Hash splat of empty hash should not create a positional argument.
akr (Akira Tanaka) wrote:
> If it is not acceptable, I have second idea:
My third idea is to use an instance va...
01:07 PM Ruby trunk Bug #15078: Hash splat of empty hash should not create a positional argument.
mame (Yusuke Endoh) wrote:
> akr (Akira Tanaka) wrote:
> > How about def `m(**kw) end` binds kw to nil if the last ...
12:00 AM Ruby trunk Feature #14183: "Real" keyword argument
`keyword_given?` provides information about the caller side.
The information is not related to callee side.
There i...

09/17/2018

11:21 AM Ruby trunk Bug #15078: Hash splat of empty hash should not create a positional argument.
akr (Akira Tanaka) wrote:
> In this behavior, following two should be same behavior (in Ruby 2.X), I think.
>
>...
05:53 AM Ruby trunk Bug #15078: Hash splat of empty hash should not create a positional argument.
mame (Yusuke Endoh) wrote:
> ```
> def target(*args)
> p args
> end
>
> def forward(*args, **kw, &blk)
> ...
05:22 AM Ruby trunk Feature #14183: "Real" keyword argument
I have an idea to separate positional arguments and keyword arguments without incompatibility.
Basic idea is intro...

Also available in: Atom