IMHO 1) `MapWithDefault` 2) `MapWithDefault` 3) `M...
# stdlib
m
IMHO 1)
MapWithDefault
2)
MapWithDefault
3)
MapWithDefault
with default from second
v
1) why 2) why 3) why
Just pointing out that this is completely arbitrary
👍 2
m
o.0 Pretty intuitive for me
MapWithDefault
for me is a package over
Map
that is default value feature. Why this feature is lost when the map is changing? It should be kept.
l
I'm looking at source code now and
MapWithDefaultImpl
does not change the
.get
method (or
.size
) at all. So it is not such simple wrapper. It only changes
.getValue