Jump to content

Extend your language: Difference between revisions

Line 2,087:
 
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! *)
1,448

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.