[vwnc] Lets have nestable comments (/* */)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
51 messages Options
123
Reply | Threaded
Open this post in threaded view
|

[vwnc] Lets have nestable comments (/* */)

Terry Raymond
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
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Lets have nestable comments (/* */)

Sattler, Thomas (IT)
This seems like an eminently sensible idea, since putting double quotes
around a group of lines will always necessitate having to remove
whatever double quotes happen to be in those lines to begin with.



Thomas Sattler
Morgan Stanley | Technology
750 Seventh Avenue, 14th Floor | New York, NY  10019
Phone: +1 212 762-1212
[hidden email]
 

> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]] On Behalf Of Terry Raymond
> Sent: Tuesday, July 29, 2008 8:32 AM
> 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
>
--------------------------------------------------------

NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Lets have nestable comments (/* */)

jtuchel
In reply to this post by Terry Raymond
+1, or, if easier, an intelligent tool for nested comemnting/uncommenting...

>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



--
-------------------------------------------------------------------
Objektfabrik Joachim Tuchel          mailto:[hidden email]
Fliederweg 1                         http://www.objektfabrik.de
D-71640 Ludwigsburg
Telefon: +49 7141 56 10 86 0         Fax: +49 7141 56 10 86 1
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Lets have nestable comments (/* */)

Thomas Brodt
In reply to this post by Terry Raymond
+ 1

nestable comments, yes please.
How often have I deleted (rather small) comments just because I couldn't
comment out comments together with the code.

Thomas

Terry Raymond schrieb:

> 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
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Lets have nestable comments (/* */)

Chris Winemiller
- 1

It adds complexity.  If you really comment out code frequently, why isn't the commented chunk in its own separate method in the first place?

It makes it difficult to find the comment boundaries because you can't double-click next to a single character (like a double-quote) and have the editor extend the selection to the matching character.

Chris

Thomas Brodt wrote:
+ 1

nestable comments, yes please.
How often have I deleted (rather small) comments just because I couldn't 
comment out comments together with the code.

Thomas

Terry Raymond schrieb:
  
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


  

-- 
Chris Winemiller                mailTo:c-winemiller@...
Adventa Control Technologies    
3001 East Plano Parkway #100
Plano TX 75074-7422
http://www.AdventaCT.com

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Lets have nestable comments (/* */)

Sattler, Thomas (IT)
> If you really comment out code frequently, why isn't the commented chunk in its own separate method in the first place?
Because it's not.  Don't force me to refactor when all I want is to comment out some damn code.
 
 
 
 
Thomas Sattler
Morgan Stanley | Technology
750 Seventh Avenue, 14th Floor | New York, NY  10019
Phone: +1 212 762-1212
[hidden email]
 


From: [hidden email] [mailto:[hidden email]] On Behalf Of Chris Winemiller
Sent: Tuesday, July 29, 2008 9:40 AM
Cc: VWNC
Subject: Re: [vwnc] Lets have nestable comments (/* */)

- 1

It adds complexity.  If you really comment out code frequently, why isn't the commented chunk in its own separate method in the first place?

It makes it difficult to find the comment boundaries because you can't double-click next to a single character (like a double-quote) and have the editor extend the selection to the matching character.

Chris

Thomas Brodt wrote:
+ 1

nestable comments, yes please.
How often have I deleted (rather small) comments just because I couldn't 
comment out comments together with the code.

Thomas

Terry Raymond schrieb:
  
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


  

-- 
Chris Winemiller                mailTo:c-winemiller@...
Adventa Control Technologies    
3001 East Plano Parkway #100
Plano TX 75074-7422
http://www.AdventaCT.com

NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Lets have nestable comments (/* */)

Steven Kelly
In reply to this post by Terry Raymond
-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.

/* is also now a legal binary selector, I think.

Steve

> -----Original Message-----
> From: [hidden email] [mailto:[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
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Lets have nestable comments (/* */)

davidbuck
+1 with a suggestion...

Just tossing out the idea - to avoid breaking the 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 shortcuts to 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] [[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
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Lets have nestable comments (/* */)

John Brant-2
In reply to this post by Terry Raymond
Terry Raymond wrote:
> 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.

For most cases, you can use [] to comment out code:

myMethod
        [self halt "This code has been commented out"].
        ^1

You have to proceed the compiler warning, but it works good enough for me.

John Brant
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Lets have nestable comments (/* */)

Michael Lucas-Smith-2
In reply to this post by davidbuck
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.

Michael

David Buck wrote:

> +1 with a suggestion...
>
> Just tossing out the idea - to avoid breaking the 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 shortcuts to 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:[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
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Lets have nestable comments (/* */)

Terry Raymond
In reply to this post by Chris Winemiller

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.

Terry

===========================================================
Terry Raymond
Crafted Smalltalk
80 Lazywood Ln.
Tiverton, RI  02878
(401) 624-4517      [hidden email]
<http://www.craftedsmalltalk.com>
===========================================================


From: [hidden email] [mailto:[hidden email]] On Behalf Of Chris Winemiller
Sent: Tuesday, July 29, 2008 9:40 AM
Cc: VWNC
Subject: Re: [vwnc] Lets have nestable comments (/* */)

 

- 1

It adds complexity.  If you really comment out code frequently, why isn't the commented chunk in its own separate method in the first place?

It makes it difficult to find the comment boundaries because you can't double-click next to a single character (like a double-quote) and have the editor extend the selection to the matching character.

Chris

Thomas Brodt wrote:

+ 1
 
nestable comments, yes please.
How often have I deleted (rather small) comments just because I couldn't 
comment out comments together with the code.
 
Thomas
 
Terry Raymond schrieb:
  
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
 
 
  



-- 
Chris Winemiller                mailTo:c-winemiller@...
Adventa Control Technologies    
3001 East Plano Parkway #100
Plano TX 75074-7422
http://www.AdventaCT.com

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Lets have nestable comments (/* */)

Dennis smith-4
In reply to this post by davidbuck


David Buck wrote:
+1 with a suggestion...

Just tossing out the idea - to avoid breaking the 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.
Please don't -- braces are used in Gemstone (maybe other smalltalks?), and would cause us problems moving code back and forth.

David Buck
Simberon Inc.
www.simberon.com

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.

/* is also now a legal binary selector, I think.

Steve

  
-----Original Message-----
From: [hidden email] [[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

-- 
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
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Lets have nestable comments (/* */)

Dennis smith-4
In reply to this post by Michael Lucas-Smith-2


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??
Michael

David Buck wrote:
  
+1 with a suggestion...

Just tossing out the idea - to avoid breaking the 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 shortcuts to 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] [[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              <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
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Lets have nestable comments (/* */)

Travis Griggs-3
In reply to this post by Steven Kelly
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
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Lets have nestable comments (/* */)

Boris Popov, DeepCove Labs (SNN)
This would imply that one always has to select a block and then invoke a
"comment" command whereas with /* */ you have a second option of simply
typing those characters if you wish.

-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 Travis Griggs
> Sent: Tuesday, July 29, 2008 9:32 AM
> 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
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Lets have nestable comments (/* */)

davidbuck
In reply to this post by Dennis smith-4
  "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 the 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 shortcuts to 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] [[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              <a moz-do-not-send="true"
 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


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Lets have nestable comments (/* */)

Travis Griggs-3
In reply to this post by Boris Popov, DeepCove Labs (SNN)
On Jul 29, 2008, at 9:43 AM, Boris Popov wrote:

> This would imply that one always has to select a block and then  
> invoke a
> "comment" command whereas with /* */ you have a second option of  
> simply
> typing those characters if you wish.

In case this point gets lost in my other longer post... In C land, /*  
is NOT a nestable comment pattern. Go test it yourself. So I'm curious  
how the original poster came up with this idea anyway. Is this  
something Java has extended or something?

--
Travis Griggs
[hidden email]
"The dissenter is every human being at those moments of his life when  
he resigns momentarily from the herd and thinks for himself." -
Archibald MacLeish, poet and librarian



_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Lets have nestable comments (/* */)

davidbuck
In reply to this post by Michael Lucas-Smith-2
In a *lot* of programming languages, // considers the rest of the line as a comment.

In Smalltalk,
    a := b // 5

assigns into a the integer result of b divided by 5.  With this new change, it would just assign b.

I have no real objections to /*  */ for nested comments except that it makes the parser more difficult, but that's an SEP (Somebody Else's Problem).  By that same logic, however, you could ask why Smalltalk still uses [ ] for blocks instead of { } which everyone else seems to use and why we have := for assignment instead of = and use == for "equals" like everyone else.

But I digress.  If you want to spend the effort to make everything work with /*  */, I'd support the effort.  I just thought "{ }" would be easier to retrofit into the system.

David Buck
Simberon Inc.
www.simberon.com

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.

Michael

David Buck wrote:
  
+1 with a suggestion...

Just tossing out the idea - to avoid breaking the 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 shortcuts to 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] [[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

  


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Lets have nestable comments (/* */)

Terry Raymond
In reply to this post by Travis Griggs-3
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
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Lets have nestable comments (/* */)

Terry Raymond
In reply to this post by Travis Griggs-3
I guess part of the problem is how the comment is parsed.
Maybe that can be fixed instead.

" comment "

string := ' string with embedded quote " '.

Now put the preceeding statement in a comment. You cannot do it
without doubleing the embedded " .

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 1:05 PM
> To: VWNC List
> Subject: Re: [vwnc] Lets have nestable comments (/* */)
>
> On Jul 29, 2008, at 9:43 AM, Boris Popov wrote:
>
> > This would imply that one always has to select a block and then
> > invoke a
> > "comment" command whereas with /* */ you have a second option of
> > simply
> > typing those characters if you wish.
>
> In case this point gets lost in my other longer post... In C land, /*
> is NOT a nestable comment pattern. Go test it yourself. So I'm curious
> how the original poster came up with this idea anyway. Is this
> something Java has extended or something?
>
> --
> Travis Griggs
> [hidden email]
> "The dissenter is every human being at those moments of his life when
> he resigns momentarily from the herd and thinks for himself." -
> Archibald MacLeish, poet and librarian
>
>
>
> _______________________________________________
> 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
123