VoltLang / Volta

Compiler for the Volt Programming Language
151 stars 8 forks source link

Pattern matching #22

Open bubnenkoff opened 7 years ago

bubnenkoff commented 7 years ago

Some arguments about Rust-like pattern-matching http://forum.dlang.org/thread/rpalctkbnxqgxkccahaq@forum.dlang.org

bhelyer commented 7 years ago

Thank you for the link, and opening this issue!

This kind of thing is definitely on our radar, but we're currently working on making all the pieces work smoothly on all platforms at the moment (an example: we need to add exception support to LLVM on Windows!) so this kind of thing is probably going to wait until a 'version 2' or so. Until then, I guess we'll muddle through with good ol' switch statements.