Re: What Is the Purpose of a Line with only Two Semi-Colons?
by davido (Cardinal) on Aug 22, 2015 at 20:44 UTC
|
| [reply] |
|
| [reply] |
Re: What Is the Purpose of a Line with only Two Semi-Colons?
by LanX (Saint) on Aug 22, 2015 at 19:18 UTC
|
I've never seen this as an intentional construct in Perl
Do you have a link?
There is a convention for single, double and triple semicolons in LISP, but there it's a comment symbol.
| [reply] |
|
| [reply] [d/l] [select] |
|
That's a nice idea and thanks, I wasn't aware that the ellipsis already came with 5.12.
| [reply] |
|
| [reply] [d/l] |
|
I'm the one who posted the example here, and I can confirm that in that case at least, davido's guess below (update: and LanX's above) is quite right: it's a personal formatting convention associated with the REPL I wrote for myself, which collapses all blank lines to nothing. I've seen double-semicolons used in code examples from BrowserUk, but in that case I think it has some actual, functional use in his personal REPL.
Give a man a fish: <%-{-{-{-<
| [reply] [d/l] |
|
|
|
| [reply] |
|
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
| [reply] [d/l] |
|
> 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
| [reply] |
Re: What Is the Purpose of a Line with only Two Semi-Colons?
by LanX (Saint) on Aug 24, 2015 at 03:10 UTC
|
| [reply] [d/l] |
|
William Sherk in 500 Years of New Words (1983), p. 272, has the follow
+ing entry:
"Octothorn, The number sign (#); so called because there are eight poi
+nts, or thorns, sticking out of it ..."
cit. Yahoo Answers
The way forward always starts with a minimal test.
| [reply] [d/l] |