lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Mon, Jan 29, 2018 at 12:23 AM, Sean Conner <sean@conman.org> wrote:
> which assigns n depending upon what is in M.  There's also Erlang's switch,
> whch uses patterns [2] to decide what to do:

It's a distinguishing feature of the ML family of languages. Rust's
match _also_ allows almost exactly the syntax you desire with
conditionals.

But without actual pattern matching, it's really just sugar over
if-else chains, which never felt like such a great burden to me.