Crate kiam

source · []
Expand description

(“kiam” is “when” in Esperanto)

This crate introduces when! macro which provides better syntax for if/else if/else chains. The syntax is similar to match.

(idea is borrowed from kotlin)

Macros

Better syntax for if/else if/else similar to match syntax