Re: Multi-line comments

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

There is not much difference between count++ and count+=1 , and a double dash will just mark the start of a line comment.

The biggest difference is that (at least in other languages that have them) the pre/post-increment/decrement operators return a value, which can be incredibly useful, but IMHO isn't very Euphorian.

Contrived example:

sequence s = get_some_input() 
integer ix = 0 
while ix++ < length( s ) do 
    -- process s[ix] 
end while 

Matt

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

Search



Quick Links

User menu

Not signed in.

Misc Menu