Skip to main content
8 events
when toggle format what by license comment
May 11, 2015 at 1:29 comment added maaartinus @GoloRoden According to Merriam-Webster it's not a verb, but see this answer.
Jan 15, 2014 at 14:16 comment added Golo Roden Yes, that's right. The point I wanted to make was basically just that union is no verb, but an operation should be described by a verb (IMHO).
Jan 15, 2014 at 14:13 comment added Fred Foo @GoloRoden I've never heard anyone say they were "uniting" two sets when computing the union. It's just not part of the lingo. "Merge" would be better, but a merge method would still need documentation explicitly stating that it implements union and was renamed for purely technical reasons.
Jan 15, 2014 at 13:01 comment added Golo Roden @larsmans I'm not a native English speaker, so forgive me if I'm wrong, but AFAIK union is a noun, not a verb. If it describes an operation, why not call it unite and the naming problem is gone? Because, at least for my understanding, you don't union two sets, you unite them into a union. Am I missing something here?
Jan 7, 2013 at 13:45 comment added vartec OTOH, cls is standard argument name for class method. Also for example in Django objects have .id attribute, which of course conflicts with id built-in function.
Mar 26, 2011 at 10:17 comment added Fred Foo @Wayne: How are you going to name the union operation in a union-find structure when union is a keyword (as in C)? Are you going to call it foo just because it shouldn't look like union?
Mar 26, 2011 at 3:41 comment added Wayne Johnston I feel this is really poor advice from a style guide. If your attribute name is so close to a keyword, you should find a better name. Simply sticking an underscore on the end doesn't add any meaning and make's it likely to confuse the next guy that reads the code.
Mar 25, 2011 at 20:21 history answered Ryan CC BY-SA 2.5