chendo (Jack Chen)
- Login: chendo
- Email: ruby-lang@chen.do
- Registered on: 11/22/2012
- Last sign in: 05/09/2014
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 2 | 2 |
Activity
03/05/2014
-
06:00 AM Ruby Bug #9593 (Closed): Keyword arguments default argument assignment behaviour not consistent with optional argument
- Given the following code:
def var
100
end
def foo(var: var + 1)
puts "var: #{var.inspect}"
end
def bar(var = var + 1)
puts "var: #{var.inspect}"
end
foo(var: 1)
foo res...
09/12/2013
-
09:54 AM Ruby Feature #8895: Destructuring Assignment for Hash
- sawa (Tsuyoshi Sawada) wrote:
> Given that destructive assignments with array prohibits the `[ ]` on the left side of the assignment, that is:
> ...
I left the braces in because I felt it would be easier to parse, however if without br... -
09:52 AM Ruby Feature #8895: Destructuring Assignment for Hash
- marcandre (Marc-Andre Lafortune) wrote:
> I suggested something similar in [ruby-core:41772].
> ...
I considered the case of default options, but I couldn't figure out a way to make it read well, and there are many cases where the key...
09/11/2013
-
04:06 PM Ruby Feature #8895 (Closed): Destructuring Assignment for Hash
Given Ruby already supports destructuring assignment with Array (a, b = [1, 2]), I propose destructuring assignments for Hash.
Basic example
-------------
```ruby
params = {name: "John Smith", age: 42}
{name: name, age: ag...
11/22/2012
-
03:51 PM Ruby Feature #7418: Kernel#used_refinements
- +1 since I gave Charlie the idea :)