Y
Hacker News
new
|
ask
|
show
|
jobs
by
sicp-enjoyer
1200 days ago
You need both access patterns (otherwise you do a double-lookup to insert a default value) and C++ already provides both.
1 comments
deredede
1200 days ago
Whatever is implemented by operator[] in a given language is going to be implicitly encouraged by the language, and that's what most novices will use.
link