3 ms·
Match is needed for sum types only for syntactic convenience; typescript does well without matching. In case of option/result a single if/else is basically the
by baq 3y ago
Match is needed for sum types only for syntactic convenience; typescript does well without matching.
In case of option/result a single if/else is basically the same as if err == nil… I’m sure an ergonomic syntax could be found.