Join Slack
Powered by
`getOrElse` as it's implemented just doesn't seem ...
# announcements
k
kevinmost
12/28/2016, 12:26 AM
getOrElse
as it's implemented just doesn't seem useful to me. Why would I do
map.getOrElse("foo") { defaultValue }
when I could do
map["foo"] ?: defaultValue
which is much more idiomatic?
Open in Slack
Previous
Next