On Fri, Apr 07, 2006 at 08:11:04PM -0700, Jonathan Lang wrote:
: Larry Wall wrote:
: > I really prefer the form where .#() looks like a no-op method call,
: > and can provide the visual dot for a postfix extender.
: Although inline and multiline comments are very likely to be used in
: situations where method calls simply aren't appropriate:
: | Hello! |
: is something that I wouldn't be surprised to see.
Obviously that's just a null method call on $_. :)
It's only a problem when some tries to write
.=#( ... :-)
: > It also is
: > somewhat less likely to happen by accident the #., I think. And I
: > think the front-end shape of .# is more recognizable as different
: > from #, while #. requires a small amount of visual lookahead, and
: > is the same "square" shape on the front, and could easily be confused
: > with a normal line-ending comment.
: All true. But it avoids the headache of figuring out whether "..#" is
: supposed to parse as a double-dot followed by a line-gobbling comment
: or as a single dot followed by a delimited comment.
One-pass, longest-token parsing says it has to be a .. followed by
a # comment. No headache, really. And nobody in their right mind
would write that anyway.