Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: What Is the Purpose of a Line with only Two Semi-Colons?

by pvaldes (Chaplain)
on Aug 23, 2015 at 12:46 UTC ( #1139576=note: print w/replies, xml ) Need Help??


in reply to Re: What Is the Purpose of a Line with only Two Semi-Colons?
in thread What Is the Purpose of a Line with only Two Semi-Colons?

Agree, I double the semicolons normally in lisp and often the # in perl. Just in case I delete one of them by mistake.

It seems that this is not an obvious error in perl in any case, bad style maybe, but no harm

perl -Mdiagnostics -Mstrict -Mwarnings -e 'print "ok\n";;;;;;' ok

Replies are listed 'Best First'.
Re^3: What Is the Purpose of a Line with only Two Semi-Colons? (LISP)
by LanX (Archbishop) on Aug 23, 2015 at 13:37 UTC
    > I double the semicolons normally in lisp

    In LISP it's more than just personal taste

    see Comments tips

    but could be that it's mainly an emacs thing.

    update
    Apparently a convention for all dialects, not only emacs

    LISP commenting convention

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1139576]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2019-10-14 17:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?