Extend your language: Difference between revisions

Content added Content deleted
Line 2,087: Line 2,087:


See also [[#ATS|ATS]] and [[#Standard_ML|Standard ML]].
See also [[#ATS|ATS]] and [[#Standard_ML|Standard ML]].

Of course, OCaml has a history of people devising entirely different syntaxes for the language, using a preprocessor. So that could be done. However, pattern matchers already support endless varieties of branching.

The same goes for pattern matchers in Lisps, such as the widely used public domain pattern matcher for Scheme.


<lang ocaml>(* Languages with pattern matching ALREADY HAVE THIS! *)
<lang ocaml>(* Languages with pattern matching ALREADY HAVE THIS! *)