Re: = vs := and = vs ==

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

It shouldn't be too difficult to realize that '&' is used for string and sequence concatenation instead of '+'. In fact, if users try to join strings instead of simple characters with '+' then they will get a lot of errors.

-- will give an error "sequence lengths are not the same (21 != 9)" 
sequence t = "This string is longer" + "than this" 

I'm not sure if using '+' originated with BASIC or before, although it is pretty common.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu