goshakkk (Gosha Arinich)
- Login: goshakkk
- Email: me@goshakkk.name
- Registered on: 12/30/2011
- Last sign in: 05/19/2016
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 1 | 2 | 3 |
Activity
05/13/2013
-
03:48 AM Ruby Bug #8398 (Rejected): case/when shouldn't try to evaluate all AND joined conditions if one of preceding was falsy
- =begin
Steps to reproduce:
case 1
when String && proc { |x| x.blah }
:something
else
:no
end
Here is how I thought it works: goes to the first 'when', evals the first condition ((({1 === String}))), sees it's fals... -
03:03 AM Ruby Feature #8396: Allow easier destructuring of MatchData
- =begin
Yep, the (({*@})) is a nice idea. Would be awesome if it could be used for splat-less destructuring as well. @matz what do you think about this?
=end
05/12/2013
-
06:49 PM Ruby Feature #8396 (Feedback): Allow easier destructuring of MatchData
- =begin
((*(I have opened ((<"a PR for this on GH @ rails/rails"|URL:https://github.com/ruby/ruby/pull/300>)) for this but @marcandre closed it and suggested I submit it here. I'll copy my proposal text here.)*))
Currently, you can ...
02/21/2013
-
10:36 PM Ruby Feature #7883: Add Regex#to_proc
- Nice one, +1 on it as well.
01/03/2012
-
01:54 AM Ruby Feature #5825: Sweet instance var assignment in the object initializer
- Alexey Muranov wrote:
> +1, why only initialize?
It's just too common case. It could work for other methods as well.
12/30/2011
-
10:49 PM Ruby Feature #5825 (Assigned): Sweet instance var assignment in the object initializer
- I'm very excited about this feature in CoffeeScript, and think it might be a nice-to-have thing in Ruby 2.0.
That's how I think it would look like:
~~~ruby
class Me
def initialize(@name, @age, @location); end
end
~~~
So we...