5 ms·
Go lets you ignore the errors and does not have tuples - only multi-variable returns so you can't not deconstruct the return value (and can't .map it as a resul
by neonsunset 2y ago
Go lets you ignore the errors and does not have tuples - only multi-variable returns so you can't not deconstruct the return value (and can't .map it as a result too).
I don't think it's fair to place the two next to each other.
F# also does exception handling (where it makes sense, though TryParse is more efficient):
let values = ["abcd"; "1234"]
let number = try int values[0] with _ -> 1337