Awesome! Coming from the small OCaml community (and the slightly larger functional programming community), it’s always exciting to see a new place where my favorite languages can now be used. Of course it’s not without it’s issues (often the cause of the lack of existing libraries in functional languages), but in many cases I do think that reinventing the wheel a little bit can help out in the long run and it’s not something that we should be frightened of doing.
Unless you try
matchinsidematch, in which case you’ll have to add parens which makes it both ugly and confusing and you’d wish for significant whitespace.I prefer using
beginandendfor that, since it at least looks a bit nicer than the parens. But I agree, it can get rather inconvenient to deal with. There’s been some proposals for explicitly ending allmatchexpressions withendrecently, though, so that could be a possible solution.