Guoliang Cao

Activity

Reported issues: 3

03/09/2013

01:11 PM Ruby trunk Feature #7998: "def" should return a value (the symbol of the method name) instead of nil
This is a nice addition indeed and I remember I asked for it too in the
past. One usage could be method annotation l...
05:37 AM Ruby trunk Bug #8052: "prepend Mod1, Mod2" behaves strangely
My bad :-D
I was so excited that I found a bug in Ruby... just kidding.
04:40 AM Ruby trunk Bug #8052 (Rejected): "prepend Mod1, Mod2" behaves strangely
I did some quick experiment with prepend and noticed a strange behavior.
"prepend B; prepend C" and "prepend B, C"...

04/01/2012

01:10 PM Ruby trunk Feature #6222: Use ++ to connect statements
You are right, anything other than 'then' or maybe 'also' hurts readability. Guess I'm too obsessed with finding some...

03/31/2012

11:53 PM Ruby trunk Feature #6222: Use ++ to connect statements
Even though using 'also' means adding a new keyword and breaks compatibility, practically no one uses it as method na...

03/30/2012

02:35 AM Ruby trunk Feature #6222: Use ++ to connect statements
I agree.
If 'then' or '++' does not work, what about 'also'? I'm not a native English speaker and not sure whether...
01:01 AM Ruby trunk Feature #6222: Use ++ to connect statements
Sorry I didn't know this. I have never seen ++ in ruby code (except probably in books) and that made me think it is n...

03/29/2012

11:54 PM Ruby trunk Feature #6224: Make variables in if/unless conditions available to conditional statements
I found this issue created 3 years ago. Matz explained the reason behind.
http://bugs.ruby-lang.org/issues/1141
11:13 PM Ruby trunk Feature #6224 (Rejected): Make variables in if/unless conditions available to conditional statements
I propose to make below code work
do_something(a) if a = condition
Above code should work exactly same as
...
10:59 PM Ruby trunk Feature #6222 (Rejected): Use ++ to connect statements
I propose to use ++ to connect two or multiple statements, e.g.
do_this ++ do_that ++ do_something
It is equiva...

Also available in: Atom