General

Profile

adgar (Michael Edgar)

  • Login: adgar
  • Email: [email protected]
  • Registered on: 03/05/2010
  • Last sign in: 10/01/2011

Issues

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

Activity

09/09/2011

11:38 PM Ruby Bug #5303 (Closed): parse.y relies on $$ = $1 before action routines [PATCH]
In perusing parse.y, I came across this pair of action routines:
bv_decls : bvar
/*%c%*/
/*%c
{
$$ = rb_ary_new3(1, $1);
}
%*/
| bv_decls ',' bvar
/*%c%*/
/*%c
{
rb_ar...
adgar (Michael Edgar)

08/02/2011

04:54 PM Ruby Feature #5123: Alias Hash 1.9 as OrderedHash
As a corollary, for a few months I had one portion of my code which used Sets, and relied on the fact that Sets in 1.9 retain their order because they in turn use a Hash. The only real way I could document this requirement was to put com... adgar (Michael Edgar)

07/10/2011

09:22 AM Ruby Feature #3845: "in" infix operator
I personally believe `in` belongs as an operator, it should match natural, mathematical, set-inclusion notation, and it should invoke `include?`.
Many have discussed how it is just as possible to write "does S include x" as well as "i...
adgar (Michael Edgar)
06:12 AM Ruby Feature #5009: Bang method (!) consistency in Ruby 2 API
This is a common misconception about the use of bang methods in Ruby. Bang does not indicate that a method mutates its receiver, merely that it should be used with caution.
A good writeup on this can be found here: http://dablog.rubyp...
adgar (Michael Edgar)
04:55 AM Ruby Bug #5002: Ripper fails to distinguish local vars from vcalls [PATCH]
Ack - I missed how nil/self would be caught as vcalls there.
As you note, splitting the variable node is necessary. I split 'variable' into 'user_variable' and 'keyword_variable', removing 'variable' entirely (since it would give r/r ...
adgar (Michael Edgar)

07/09/2011

12:55 PM Ruby Feature #4935: Quoted Label Form for 1.9 Hashes
With the feature freeze coming up in a couple days, is there a chance this sees 1.9.3? It doesn't break any old syntax, only introduces new syntax, and rounds out the label feature of the 1.9 branch nicely. adgar (Michael Edgar)
12:24 PM Ruby Bug #5002 (Closed): Ripper fails to distinguish local vars from vcalls [PATCH]
Ripper always parses the `variable` grammar production (which includes identifiers, {i,c,g}vars, nil, __FILE__, etc) as a `var_ref` node, whose only child is the token itself.
This is a problem for one huge reason: local variables loo...
adgar (Michael Edgar)

07/03/2011

12:18 PM Ruby Bug #4716: Ripper orders rescue_mod subnodes inconsistently [PATCH]
I feel this merits inclusion in Ruby 1.9.3. Otherwise, Ripper will have known user-facing bugs for another point release. A patch has been available for a month and a half, as well. Any chance for an update? adgar (Michael Edgar)
05:02 AM Ruby Feature #4965: The problem of "print line if line = DATA.gets"
Some technical background: the current issue stems from how the parser must differentiate between local variables and method calls. Presently, local variables are created by the parser upon their introduction (assignment, rescue handlers... adgar (Michael Edgar)

06/27/2011

11:31 AM Ruby Feature #4935: Quoted Label Form for 1.9 Hashes
Sorry, meant to list this as a feature. Test attached. adgar (Michael Edgar)

Also available in: Atom