byKey and byValue: properties or methods?

Jonathan M Davis jmdavisProg at gmx.com
Fri Jan 20 09:04:22 PST 2012


On Friday, January 20, 2012 15:13:51 Alvaro wrote:
> Well, there is the case of std::map and its [] operator which adds an
> element if it does not exist. Even if in the right hand side:
> 
> a = map[x]; // modifies map if x was not found in it
> 
> Maybe Marco is talking about something like that.

Maybe. It's certainly a pretty horrible design decision IMHO, and it's not 
something that should be emulated.

- Jonathan M Davis


More information about the Digitalmars-d mailing list