Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 ( [id://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 (Saint) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1139576]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (7)
As of 2024-04-23 11:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found