Join Slack
Powered by
Or just do a nullcheck on the result of `get` inst...
# getting-started
d
diesieben07
08/17/2017, 5:49 PM
Or just do a nullcheck on the result of
get
instead of the
containsKey
, saves you one hash lookup as well.
v
v79
08/17/2017, 6:02 PM
Sadly, smartCast isn't handling that either because it's a complex expression. I'll have to introduce a new variable 😞
d
diesieben07
08/17/2017, 6:16 PM
Nothing wrong with variables 😛
2
Views
Open in Slack
Previous
Next