[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Desired Lua Features
- From: steve donovan <steve.j.donovan@...>
- Date: Mon, 29 Jan 2018 10:26:37 +0200
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.