[Tutor] How is "set(ls).add('a') evaluated? [Was: Re: A program that can check if all elements of the list are mutually disjoint]
Mats Wichmann
mats at wichmann.us
Sun Jun 6 19:09:32 EDT 2021
On 6/6/21 5:05 PM, Cameron Simpson wrote:
> "add" is a verb. It modifies the set. "union" is a noun: it returns a
> thing computed from the set(s).
...
> Grammar helps, provided that people have put a little effort into naming
> the API calls.
Yeah, that: API design is actually not that easy. Including naming :)
More information about the Tutor
mailing list