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. Advertisements

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. =?ISO-8859-1?Q?Thomas_Gagn=E9?=
    Replies:
    9
    Views:
    11,517
    Jezuch
    Jul 3, 2003
  2. Ian
    Replies:
    2
    Views:
    470
    Ulrich Petri
    Sep 6, 2003
  3. Mac
    Replies:
    1
    Views:
    795
  4. sck10
    Replies:
    0
    Views:
    416
    sck10
    Mar 12, 2007
  5. sck10
    Replies:
    0
    Views:
    339
    sck10
    Mar 14, 2007
  6. Pawel_Iks
    Replies:
    3
    Views:
    749
    terminator
    Jul 31, 2007
  7. Carl Schumann
    Replies:
    0
    Views:
    714
    Carl Schumann
    Feb 19, 2009
  8. aidy
    Replies:
    5
    Views:
    482
    Marcin Mielżyński
    Jun 4, 2006
Loading...