On 1 November 2011 18:08, Eliot Miranda <eliot.miranda@gmail.com> wrote:
On Mon, Oct 31, 2011 at 2:22 PM, Lukas Renggli <renggli@gmail.com> wrote:
The problem is that both #/* and #/* are valid binary operators, so they don't work well for comments.
I don't really remember what I proposed a few years ago, although I remember that exactly the same proposal was made. What would work is to use something like "* and *" (or any other double thing that starts with a double quote). Like this the comments could contain double quotes.
Gilad Bracha chose (* & *) for Newspeak. Â These are not valid binary selectors and * can't follow ( in valid code. Â A good choice.
Hehe. Pascal has the same syntax for comments.
As a short term solution you can also put your comments into single quotes. Unused string literals are removed by the compiler.
Lukas
On 31 October 2011 22:00, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
Me too.
Sean lukas proposed a syntax for that in the mailing-list a year ago. If you find it please resent it.
Stef
On Oct 31, 2011, at 9:12 PM, Sean P. DeNigris wrote:
Would it be difficult/valuable to create an alternate comment syntax? I often find myself wanting to comment a large block itself containing comments. It would be nice to have something like C++'s /* */. I feel like this may have been brought up before, but couldn't find it searching the lists.
Sean
-- View this message in context: http://forum.world.st/Comment-Syntax-tp3961451p3961451.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
-- Lukas Renggli www.lukas-renggli.ch
-- best, Eliot
-- Best regards, Igor Stasenko.