How clean/elegant is Python's syntax?
Ian Kelly
ian.g.kelly at gmail.com
Fri May 31 11:39:58 EDT 2013
On Fri, May 31, 2013 at 4:16 AM, Fábio Santos <fabiosantosart at gmail.com> wrote:
> On Fri, May 31, 2013 at 10:08 AM, Alister <alister.ware at ntlworld.com> wrote:
>> I think that is the winning argument.
>> Next question is what should be the default ("", " " or',')?
>
> join, comma_join, whitejoin, linejoin variants, with different defaults?
The more specific versions should not even have the parameter as an
argument that can be supplied. Otherwise you could do:
comma_join(words, sep=';')
which is just unclear, and there is no reason to allow it.
More information about the Python-list
mailing list