General

Profile

coyote (Alexey Babich)

Issues

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

Activity

05/03/2016

12:36 PM Ruby Feature #9999: Type Annotations (Static Type Checking)
Nobuyoshi Nakada wrote:
> Alexey Babich wrote:
> ...
As I know, currently syntax like
~~~ruby
def B a(...); end
~~~
is not possible and raises smth like
~~~ruby
SyntaxError: (irb):11: syntax error, unexpected '(', expecting...
coyote (Alexey Babich)
09:33 AM Ruby Feature #9999: Type Annotations (Static Type Checking)
**For usage level**:
Static type checking looks most useful as syntax pre-compilation feature to speed-up code execution and
code/syntax verification-before-execution improvements
**For syntax**:
Current syntax (e.g. 2.3*) shows th...
coyote (Alexey Babich)

07/10/2014

01:44 PM Ruby Bug #10023: Hash#merge fails duplicating objects
Please, note that only Rails' `deep_dup` seems helpful to workaround the issue coyote (Alexey Babich)
01:42 PM Ruby Bug #10023: Hash#merge fails duplicating objects
The same with duplication
>> c=A.dup #same .clone
=> {:b=>{}}
> ...
=> {:b=>{}, :c=>{:d=>"e"}}
>> c[:b][:d] = 'bug'
=> "bug"
> ...
=> {:b=>{:d=>"bug"}}
coyote (Alexey Babich)
01:38 PM Ruby Bug #10023: Hash#merge fails duplicating objects
Please, also note that Rails' `deep_merge` does not help coyote (Alexey Babich)
01:36 PM Ruby Bug #10023 (Rejected): Hash#merge fails duplicating objects
Here is an example in IRB (ruby 2.1.2):
>> A={b:{}}
=> {:b=>{}}
> ...
=> {:b=>{}, :c=>{:d=>"e"}}
>> c[:b][:d] = "f"
=> "f"
> ...
=> {:b=>{:d=>"f"}}
Every key, value pair is expected to be duplicated during the merge? Please, inv...
coyote (Alexey Babich)

Also available in: Atom