Heh, indeed, not confusing at all,
http://www.getdropbox.com/gallery/6265/1/vwnc?h=bd5d4a -Boris -- +1.604.689.0322 DeepCove Labs Ltd. 4th floor 595 Howe Street Vancouver, Canada V6C 2T5 http://tinyurl.com/r7uw4 [hidden email] CONFIDENTIALITY NOTICE This email is intended only for the persons named in the message header. Unless otherwise indicated, it contains information that is private and confidential. If you have received it in error, please notify the sender and delete the entire message including any attachments. Thank you. > -----Original Message----- > From: [hidden email] [mailto:[hidden email]] On Behalf > Of David Buck > Sent: Tuesday, July 29, 2008 9:58 AM > To: VWNC > Subject: Re: [vwnc] Lets have nestable comments (/* */) > > "This is a comment with an embedded "" character" > > """This is a commented comment with an embedded """" character""" > > """""This is a commented commented comment with an embedded > character""""" > > Any questions? :-) > > David Buck > > Dennis Smith wrote: > > Why add syntax? Why not just use "..." -- but provide functions to > comment or uncomment > things that contain comments?? > > > David Buck wrote: > > > +1 with a suggestion... > > Just tossing out the idea - to avoid breaking > existing syntax, > could we use "{ as the opening comment marker and }" as > the closing > comment marker? I really hate double quoting double > quotes within > comments. This syntax would be reasonably compatible > with the > Smalltalk syntax (it doesn't look like a binary > operator) but still > provides the nesting. Additionally, you can double > click inside the { > } characters to select the entire comment. > > David Buck > Simberon Inc. > www.simberon.com > > Steven Kelly wrote: > > > -1 > > Why not just have menu or keyboard > comment/uncomment the > selection? When commenting a block that already > contains comments, the > comment quotes could be automatically doubled. > > /* is also now a legal binary selector, I think. > > Steve > > > > > -----Original Message----- > From: [hidden email] [mailto:vwnc- > [hidden email]] On > Behalf Of Terry Raymond > Sent: 29 July 2008 15:32 > To: VWNC > Subject: [vwnc] Lets have nestable comments > (/* */) > > Maybe it is just me but I would like to be > able to comment > out a group of lines without having to > double quote enclosed > quotes. I think it would be nice to have > something like > /* and */ and make them nestable. > > Terry > > > =========================================================== > Terry Raymond > Crafted Smalltalk > 80 Lazywood Ln. > Tiverton, RI 02878 > (401) 624-4517 > [hidden email] > > <http://www.craftedsmalltalk.com> > > =========================================================== > > > _______________________________________________ > vwnc mailing list > [hidden email] > > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc > > > > > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc > > > > > -------------------------------------------------------- > ---------------- > > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc > > > > > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc > > > > -- > Dennis Smith +1 416.798.7948 > Cherniak Software Development Corporation Fax: +1 416.798.0948 > 509-2001 Sheppard Avenue East [hidden email] > Toronto, ON M2J 4Z8 sip:[hidden email] > Canada http://www.CherniakSoftware.com > Entrance off Yorkland Blvd south of Sheppard Ave east of the DVP > > ________________________________ > > > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc > > _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by Terry Raymond
Gilad Bracha's Newspeak uses (* ... *). As others have pointed out C comments don't nest, and {}'s are reserved for things like tuples and qualified references. // is also not on because it is an operator and Smalltalk does not have line-oriented syntax (e.g. foo // <CR> bar is foo // bar). So how about (* ... *) ?
On Tue, Jul 29, 2008 at 5:31 AM, Terry Raymond <[hidden email]> wrote: Maybe it is just me but I would like to be able to comment _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Eliot Miranda wrote:
> Gilad Bracha's Newspeak uses (* ... *). As others have pointed out C > comments don't nest, and {}'s are reserved for things like tuples and > qualified references. // is also not on because it is an operator and > Smalltalk does not have line-oriented syntax (e.g. foo // <CR> bar is > foo // bar). So how about (* ... *) ? (* and *) are better than any other suggestions I've seen on this thread. //, /*, and */ are all valid binary selectors, and so can appear in existing Smalltalk code. (* and *) are not valid binary selectors, and a parenthesized expression cannot start or end with a binary selector, so this works. Historical note: The first nestable comment feature in any Smalltalk (that I'm aware of) was in Smalltalk Agents for Macintosh, which used “ and ” for nestable comments. (If those non-ASCII characters don't come through for all mail readers, they're the opening and closing curly quote characters.) I found this quite elegant, and would recommend using it if we were willing to break out of the ASCII world for our syntax, but I suppose that's not something we want to do. Regards, -Martin _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by Dennis smith-4
Dennis Smith escreveu:
> > > Michael Lucas-Smith wrote: >> Why go for a syntax that's so esoteric? Also, we can make the tools >> recognize /* */ and do the double click selection trick. >> >> I'm for 'standard' comment syntax. // and /* */ are used in a *lot* of >> programming languages. >> > Why add syntax? Why not just use "..." -- but provide functions to > comment or uncomment > things that contain comments?? +1 -- Cesar Rabak GNU/Linux User 52247. Get counted: http://counter.li.org/ _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by Eliot Miranda-2
On 30/07/2008, at 2:54 AM, Eliot Miranda wrote: > Gilad Bracha's Newspeak uses (* ... *). As others have pointed out > C comments don't nest, and {}'s are reserved for things like tuples > and qualified references. // is also not on because it is an > operator and Smalltalk does not have line-oriented syntax (e.g. > foo // <CR> bar is foo // bar). So how about (* ... *) ? Any form of nestable comment would need a reversible escaping mechanism to be automatically applicable. e.g. if I comment out the following code: aStream nextPutAll: '*)'. what should happen? That's the beauty of // -> eol as a comment mechanism. Antony Blakey -------------------------- CTO, Linkuistics Pty Ltd Ph: 0438 840 787 Success is not the key to happiness. Happiness is the key to success. -- Albert Schweitzer _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by Terry Raymond
On 30/07/2008, at 12:53 AM, Terry Raymond wrote: > Commenting out code works quite well for changes that you are unsure > about and may want to back out. > > You may also want to comment out code, rather than remove it, as a > way of keeping a change history. Neither of which would be relevant with a decent version control system. Antony Blakey ------------- CTO, Linkuistics Pty Ltd Ph: 0438 840 787 He who would make his own liberty secure, must guard even his enemy from repression. -- Thomas Paine _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by Terry Raymond
Slip over to that 'other' commercial Smalltalk ( VAST ) and try their very nice and easy to use commenting/uncommenting feature. From memory you selected an area, and clicked the comment button, as you browsed around your code if you entered a commented area the comment button became a uncomment button. I think it used " as the brace. I selected vwst for Linux work, but did miss this nice feature. This thread illustrates the VERY SMALL items that if fixed would make vwst a much better product. Perhaps the internals of vwst are just as messy as other tar ball products !! On Tue, 29 Jul 2008 13:09:38 -0400 "Terry Raymond" <[hidden email]> wrote: > I don't care what syntax is used. However, if a command > is used to comment and properly double quote then we also > need double clicking to highlight the entire comment and > not just up to the next double quote. > > Terry > > =========================================================== > Terry Raymond > Crafted Smalltalk > 80 Lazywood Ln. > Tiverton, RI 02878 > (401) 624-4517 [hidden email] > <http://www.craftedsmalltalk.com> > =========================================================== > > > -----Original Message----- > > From: [hidden email] [mailto:[hidden email]] On Behalf Of Travis Griggs > > Sent: Tuesday, July 29, 2008 12:32 PM > > To: VWNC List > > Subject: Re: [vwnc] Lets have nestable comments (/* */) > > > > On Jul 29, 2008, at 7:19 AM, Steven Kelly wrote: > > > > > -1 > > > > > > Why not just have menu or keyboard shortcuts to comment/uncomment the > > > selection? When commenting a block that already contains comments, the > > > comment quotes could be automatically doubled. > > > > > > +1, to Steven's idea. I was going to propose that that is the proper > > solution, but he beat me to it :) > > > > -- > > Travis Griggs > > Objologist > > What's next, Intel Processors branded with "Apple Outside" stickers? > > > > > > _______________________________________________ > > vwnc mailing list > > [hidden email] > > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc > > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc > -- Cheers, Brett _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by Antony Blakey-2
Antony Blakey wrote: I disagree -- I often comment out code or even keep previous versions of methods (I add X to the end)On 30/07/2008, at 12:53 AM, Terry Raymond wrote:Commenting out code works quite well for changes that you are unsure about and may want to back out. You may also want to comment out code, rather than remove it, as a way of keeping a change history.Neither of which would be relevant with a decent version control system. as a reminder of particular change that might want more looking at if I am debugging in that area. Eventually I remove the commented code, but it is really helpful to see it there for a while, and being able to look at previous versions would not help as I would not be reminded to do so. Antony Blakey ------------- CTO, Linkuistics Pty Ltd Ph: 0438 840 787 He who would make his own liberty secure, must guard even his enemy from repression. -- Thomas Paine _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc -- Dennis Smith +1 416.798.7948 Cherniak Software Development Corporation Fax: +1 416.798.0948 509-2001 Sheppard Avenue East [hidden email] Toronto, ON M2J 4Z8 <a class="moz-txt-link-freetext" href="sip:dennis@CherniakSoftware.com">sip:dennis@... Canada http://www.CherniakSoftware.com Entrance off Yorkland Blvd south of Sheppard Ave east of the DVP _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by dragoncity
brett wrote: VW does have this, its just not nestable.Slip over to that 'other' commercial Smalltalk ( VAST ) and try their very nice and easy to use commenting/uncommenting feature. From memory you selected an area, and clicked the comment button, as you browsed around your code if you entered a commented area the comment button became a uncomment button. I think it used " as the brace. I selected vwst for Linux work, but did miss this nice feature. in VW, select some characters and press -- Escape + " that will add the comments. Select the quoted string (inside the quotes) and press -- Escape + " and it removes the comments. This thread illustrates the VERY SMALL items that if fixed would make vwst a much better product. Perhaps the internals of vwst are just as messy as other tar ball products !! On Tue, 29 Jul 2008 13:09:38 -0400 "Terry Raymond" [hidden email] wrote:I don't care what syntax is used. However, if a command is used to comment and properly double quote then we also need double clicking to highlight the entire comment and not just up to the next double quote. Terry =========================================================== Terry Raymond Crafted Smalltalk 80 Lazywood Ln. Tiverton, RI 02878 (401) 624-4517 [hidden email] <http://www.craftedsmalltalk.com> ===========================================================-----Original Message----- From: [hidden email] [[hidden email]] On Behalf Of Travis Griggs Sent: Tuesday, July 29, 2008 12:32 PM To: VWNC List Subject: Re: [vwnc] Lets have nestable comments (/* */) On Jul 29, 2008, at 7:19 AM, Steven Kelly wrote:-1 Why not just have menu or keyboard shortcuts to comment/uncomment the selection? When commenting a block that already contains comments, the comment quotes could be automatically doubled.+1, to Steven's idea. I was going to propose that that is the proper solution, but he beat me to it :) -- Travis Griggs Objologist What's next, Intel Processors branded with "Apple Outside" stickers? _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc_______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc -- Dennis Smith +1 416.798.7948 Cherniak Software Development Corporation Fax: +1 416.798.0948 509-2001 Sheppard Avenue East [hidden email] Toronto, ON M2J 4Z8 <a class="moz-txt-link-freetext" href="sip:dennis@CherniakSoftware.com">sip:dennis@... Canada http://www.CherniakSoftware.com Entrance off Yorkland Blvd south of Sheppard Ave east of the DVP _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by Antony Blakey-2
Well, I suppose if we had method versions like Envy then
it would not matter so much. But, I don't believe every edit necessitates its own version. Terry =========================================================== Terry Raymond Crafted Smalltalk 80 Lazywood Ln. Tiverton, RI 02878 (401) 624-4517 [hidden email] <http://www.craftedsmalltalk.com> =========================================================== > -----Original Message----- > From: [hidden email] [mailto:[hidden email]] On Behalf Of Antony Blakey > Sent: Tuesday, July 29, 2008 7:10 PM > To: VWNC > Subject: Re: [vwnc] Lets have nestable comments (/* */) > > > On 30/07/2008, at 12:53 AM, Terry Raymond wrote: > > > Commenting out code works quite well for changes that you are unsure > > about and may want to back out. > > > > You may also want to comment out code, rather than remove it, as a > > way of keeping a change history. > > Neither of which would be relevant with a decent version control system. > > Antony Blakey > ------------- > CTO, Linkuistics Pty Ltd > Ph: 0438 840 787 > > He who would make his own liberty secure, must guard even his enemy > from repression. > -- Thomas Paine > > > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by Dennis smith-4
Dennis Smith wrote:
But it doesn't properly quote internal quotes. 'Say "Hello" to everyone' changes to "'Say "Hello" to everyone'" but the Hello part is now not part of a comment. David Buck _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
David Buck wrote: Dennis Smith wrote:Yes, VA does handle nesting -- seems that '"' (thats single+double+single) is an escaped commenting quote (i.e. its ignored). So if you "comment" something like abc "def" xyz you get "abc '"' def '"' xyz" then you can uncomment it and get back the original. So if VA does it that way, why not adopt that?? Would it break any current comments? possibly but I doubt there would be many.
-- Dennis Smith +1 416.798.7948 Cherniak Software Development Corporation Fax: +1 416.798.0948 509-2001 Sheppard Avenue East [hidden email] Toronto, ON M2J 4Z8 <a class="moz-txt-link-freetext" href="sip:dennis@CherniakSoftware.com">sip:dennis@... Canada http://www.CherniakSoftware.com Entrance off Yorkland Blvd south of Sheppard Ave east of the DVP _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by Terry Raymond
On Wed, 30 Jul 2008 13:44:16 -0400
"Terry Raymond" <[hidden email]> wrote: > Well, I suppose if we had method versions like Envy then > it would not matter so much. But, I don't believe every > edit necessitates its own version. I have a menu item in the "Method" menu of the RB called "Browse method changes", which does this. It's probably from the parcel "Method-History" distributed with VW. Frankly, I personally don't get this hubbub about complexifying the system. It's never been an issue for me. s. _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by Martin McClure
On 29-Jul-08, at 3:02 PM, Martin McClure wrote: > (* and *) are better than any other suggestions I've seen on this > thread. //, /*, and */ are all valid binary selectors, and so can > appear > in existing Smalltalk code. (* and *) are not valid binary selectors, > and a parenthesized expression cannot start or end with a binary > selector, so this works. I think "{ and }" was also a good suggestion. (Note that this is NOT just braces. A comment would start with quote-left-brace and end with right-brace-q uote.) It doesn't conflict with anything either, and It has the advantage of being compatible with traditional Smalltalk comments, when not nested. Colin _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Why add complexity to the syntax when VA has already
done it using " characters by quoting the internal ones in single quotes? No added syntax, a bit of semantic change, and some compatibility among vendors?? Colin Putney wrote: On 29-Jul-08, at 3:02 PM, Martin McClure wrote:(* and *) are better than any other suggestions I've seen on this thread. //, /*, and */ are all valid binary selectors, and so can appear in existing Smalltalk code. (* and *) are not valid binary selectors, and a parenthesized expression cannot start or end with a binary selector, so this works.I think "{ and }" was also a good suggestion. (Note that this is NOT just braces. A comment would start with quote-left-brace and end with right-brace-q uote.) It doesn't conflict with anything either, and It has the advantage of being compatible with traditional Smalltalk comments, when not nested. Colin _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc -- Dennis Smith +1 416.798.7948 Cherniak Software Development Corporation Fax: +1 416.798.0948 509-2001 Sheppard Avenue East [hidden email] Toronto, ON M2J 4Z8 <a class="moz-txt-link-freetext" href="sip:dennis@CherniakSoftware.com">sip:dennis@... Canada http://www.CherniakSoftware.com Entrance off Yorkland Blvd south of Sheppard Ave east of the DVP _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
I wrote:
>> I think "{ and }" was also a good suggestion. On 30-Jul-08, at 7:38 PM, Dennis Smith wrote: > Why add complexity to the syntax when VA has already > done it using " characters by quoting the internal ones in > single quotes? No added syntax, a bit of semantic change, > and some compatibility among vendors?? The advantage of "{ }" or (* *) is that the opening a comment is distinct from closing a comment. This allows the compiler to support nested comments without escaping. If you don't mind escaping nested comments, what reason do you have for preferring single-double-single as the escape sequence over double-double? Colin _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
On Jul 31, 2008, at 5:58 PM, Colin Putney wrote: > I wrote: >>> I think "{ and }" was also a good suggestion. > On 30-Jul-08, at 7:38 PM, Dennis Smith wrote: > >> Why add complexity to the syntax when VA has already >> done it using " characters by quoting the internal ones in >> single quotes? No added syntax, a bit of semantic change, >> and some compatibility among vendors?? > > The advantage of "{ }" or (* *) is that the opening a comment is > distinct from closing a comment. This allows the compiler to support > nested comments without escaping. If you don't mind escaping nested > comments, what reason do you have for preferring single-double-single > as the escape sequence over double-double? I like the simplicity of comments currently. I just have to quote something. A very natural language type of thing to do. It's a single shift-char sequence. All of these suggestions, while they solve a problem I encounter now and then again, do so at the expense of ease of use for the very common documentation case. I have to do a two- shift-char sequence and differentiate between lead and end. -- Travis Griggs Objologist "An idea, like a ghost, must be spoken to a little before it will explain itself." - Charles Dickens _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by Terry Raymond
I would say that the current tools are pritty good. The only small thing I could say about comments is that I would like a comment which starts on a new line to stay on a new line and a comment which starts after a statement to stay at that line after formatting the text. @+Maarten, _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by Travis Griggs-3
With "{ and }", you can still use simple double quotes to comment things. It doesn't take away that facility. The "{ form would allow you to comment out large sections without having to double the double quotes inside. I would expect it to be used much more rarely and only for commenting out sections of code that still have comments.On Jul 31, 2008, at 5:58 PM, Colin Putney wrote:I wrote:I think "{ and }" was also a good suggestion.On 30-Jul-08, at 7:38 PM, Dennis Smith wrote:Why add complexity to the syntax when VA has already done it using " characters by quoting the internal ones in single quotes? No added syntax, a bit of semantic change, and some compatibility among vendors??The advantage of "{ }" or (* *) is that the opening a comment is distinct from closing a comment. This allows the compiler to support nested comments without escaping. If you don't mind escaping nested comments, what reason do you have for preferring single-double-single as the escape sequence over double-double?I like the simplicity of comments currently. I just have to quote something. A very natural language type of thing to do. It's a single shift-char sequence. All of these suggestions, while they solve a problem I encounter now and then again, do so at the expense of ease of use for the very common documentation case. I have to do a two- shift-char sequence and differentiate between lead and end. -- Travis Griggs Objologist "An idea, like a ghost, must be spoken to a little before it will explain itself." - Charles Dickens _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc David Buck _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by Colin Putney
Colin Putney wrote: Compatibility with a large existing Smalltalk that already does it.I wrote:I think "{ and }" was also a good suggestion.On 30-Jul-08, at 7:38 PM, Dennis Smith wrote:Why add complexity to the syntax when VA has already done it using " characters by quoting the internal ones in single quotes? No added syntax, a bit of semantic change, and some compatibility among vendors??The advantage of "{ }" or (* *) is that the opening a comment is distinct from closing a comment. This allows the compiler to support nested comments without escaping. If you don't mind escaping nested comments, what reason do you have for preferring single-double-single as the escape sequence over double-double? Colin _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc -- Dennis Smith +1 416.798.7948 Cherniak Software Development Corporation Fax: +1 416.798.0948 509-2001 Sheppard Avenue East [hidden email] Toronto, ON M2J 4Z8 <a class="moz-txt-link-freetext" href="sip:dennis@CherniakSoftware.com">sip:dennis@... Canada http://www.CherniakSoftware.com Entrance off Yorkland Blvd south of Sheppard Ave east of the DVP _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Free forum by Nabble | Edit this page |