Comment by xigoi
2 months ago
On the other hand, it’s more ergonomic and readable because you don’t need to declare a new name.
if name != nil:
echo name
versus
case name
of Some(unwrappedName):
echo unwrappedName
2 months ago
On the other hand, it’s more ergonomic and readable because you don’t need to declare a new name.
if name != nil:
echo name
versus
case name
of Some(unwrappedName):
echo unwrappedName
No comments yet
Contribute on Hacker News ↗