Re: Discuss changing the behaviour of append()

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

I believe among new users or infrequent users, if a user passes an atom as a first argument to append, it is probably because they are accidentally reversing the order of the parameters and not because they want to treat atoms as length-one sequences that contain that atom.

Um, wow.

That's a pretty good argument.

It's better to fail early than introduce a logic error which may not be caught until much much later.

If you are right, then users could be confused as to why append is starting to act like prepend.

That said, I still think this is unlikely to happen. It'd be inconsistent with the order of parameters in the basic math operators (e.g. subtraction and division) and concatenation.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu