Trailing comma in method call

Discussion in 'Ruby' started by Gavin Kistner, Feb 20, 2004.

  1. [1,2,3, ] is valid Ruby
    { 1=>2, } is valid Ruby

    Wouldn't it sort of make sense for:

    myMethod(a,b,)

    to be valid Ruby?


    --
    (-, /\ \/ / /\/, who is copy/pasting lines of arguments, and keeps
    forgetting to add a , or remove the last one.
    Gavin Kistner, Feb 20, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Les Caudle
    Replies:
    0
    Views:
    611
    Les Caudle
    Mar 7, 2004
  2. martin
    Replies:
    1
    Views:
    463
    Rick Strahl [MVP]
    Jul 19, 2004
  3. Andrei Pociu
    Replies:
    4
    Views:
    488
    Andrei Pociu
    Oct 14, 2004
  4. Ben
    Replies:
    5
    Views:
    2,122
    jongalloway
    Jan 16, 2005
  5. Carl Schumann
    Replies:
    0
    Views:
    623
    Carl Schumann
    Feb 19, 2009
Loading...

Share This Page