1. Re: '+= 'shorthand
- Posted by kbochert at ix.netcom.com Jun 27, 2001
- 444 views
-------Phoenix-Boundary-07081998- > >> 6-- slicing shorthands: >> ... >> seq +=3D "a" =3D> seq =3D append (seq, "a") >What would you do in the case: > > seq +=3D 'a' >seq +=3D "a" =3D> seq =3D append (seq, "a") Oops! The general theme behind these shorthands is to eliminate redundancy. A line like: "method_signature_dictionary =3D method_signature_dictionary[2..length(method_signature_dictionary)]" is error-prone and messes up my nice code. However, breaking existing code is a no-no, so I'll have to live without this one. Thanx Karl Bochert -------Phoenix-Boundary-07081998---