3 ms·
Yes, anything which is more complex than a very simple if-else. The advantage is even more obvious with switch-expressions, e.g.: https://ziglang.org/documenta
by flohofwoe 7y ago
Yes, anything which is more complex than a very simple if-else. The advantage is even more obvious with switch-expressions, e.g.:
https://ziglang.org/documentation/master/#switch https://ziglang.org/documentation/master/#switch
https://doc.rust-lang.org/reference/expressions/match-expr.html https://doc.rust-lang.org/reference/expressions/match-expr.h...