http://www.perlmonks.org?node_id=578731


in reply to If I was forced to program in another language, the Perl language feature I would miss most would be:

well i voted 'trailing comma' since that is what i fail in other languages (especially in sql, where this almost everytime results in meaningless error messages from braindead DBMS). if however, the subject is something bigger then i would say 'useful error messages in most cases'
  • Comment on Re: If I was forced to program in another language, the Perl language feature I would miss most would be:

Replies are listed 'Best First'.
Re^2: If I was forced to program in another language, the Perl language feature I would miss most would be:
by herveus (Prior) on Oct 17, 2006 at 13:00 UTC
    Howdy!

    Of the choices presented, I selected 'trailing comma' as well. I really like being able to construct lists that are easy to extend by simply inserting new lines without having to remember to hang the comma on the previous last line.

    yours,
    Michael
Re^2: If I was forced to program in another language, the Perl language feature I would miss most would be:
by hossman (Prior) on Oct 18, 2006 at 00:45 UTC

    You can live without "trailing comma" by getting in the habit of using "leading comma"...

    assertQ( "minimum mm is three" ,req("cool stuff traveling") ,"//*[@numFound='2']" ,"//result/doc[1]/int[@name='id'][. ='42']" ,"//result/doc[2]/int[@name='id'][. ='666']" );
      That doesn't solve anything. It just moves the problem the trailing comma solves. Instead of making it harder to add at the end, it makes it harder to add at the front.
        I beg to differ. You're far more likely to want to add to the end, so it is a big improvement.