Re: Nested Multiline Comment

new topic     » goto parent     » topic index » view thread      » older message » newer message
jeremy said...

Is there any reason why we shouldn't make this valid?

/* 

sequence name = "John" /* testing */ 
integer age = 133 
*/ 

I personally am in favor of the above working. I'd like to know the reasoning against it? I understand that multi-line comments were not designed to comment out working blocks of code and that an ifdef could be used, but is that the best way? Why not allow it to be commented out by multi-line comments?

Jeremy

It would be very convinient to have. I can't tell you how many times I've used those in C or Java files, only to have the compile fail because the code I was commenting out, had a multiline comment that was one line long. I would be for this unless someone gave a compelling reason why it was a bad idea.

And Java doesn't have even have ifdefs.....

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu