Re: Discuss changing the behaviour of append()
- Posted by gimlet Jun 08, 2014
- 5254 views
Jim,
If it is the case the translator doesn't check then it would make sense not to change append's behaviour.
Append is surely used > 99.9% in situations where a sequence is passed as parameter.
To account for the < 0.1% of cases where an atom is passed by changing the function does not make sense.
Every use of the function takes an (admittedly small) hit to allow an atom to be passed as if it were a sequence. There are probably more than a few functions which could benefit from this and a few more which could benefit from allowing sequences to be passed as atoms.
Probably a lot of these implicit conversions are stupid or unsafe.
In the long run it's your language and you can do with it as you like.

