|
Tom Spilman wrote:
"little chance of them appearing in normal code"?What about content of strings, or nested comments?Well face it... No matter what is suggested it can appear in a string. *Nothing* will work 100% of the time. -# This is simple and will work in most cases. #- At worst it has the same failings as C/C++ comments... I say that's just fine.
That's why HereDoc strings (and the Lua star variant) where invented: they provide a consistent infinity of styles that adapt to any enclosed content. Choosing a fixed comment/string style would provide no solution to the problem, how rare the ending combination could occurs.
-- --=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=-- Philippe Lhoste (Paris -- France) Professional programmer and amateur artist http://Phi.Lho.free.fr --=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--