Re: Discuss changing the behaviour of append()
- Posted by jimcbrown (admin) Jun 11, 2014
- 4748 views
kinzz said...
Derek, this case shows that there was some wrong logic in your "current code".
And that your subtle logic bug was fixed thanks to old good append() feature.
Okay, what was the wrong logic bug?
kinzz said...
So, your code was 'ugly', not your new function F() which corrected your mistake.
It's still slower, as F() has to make the check for a sequence and then append() will that check a second time. Why not consolidate these two into a single check?
kinzz said...
Or, maybe, you just forgot how append() works? 
Let's remember, length() works on atoms. It's append() (and prepend()) that's inconsistent here.

