reasonml / reason

Simple, fast & type safe code that leverages the JavaScript & OCaml ecosystems
http://reasonml.github.io
MIT License
10.12k stars 428 forks source link

Reason Syntax v4: Angle Brackets Type Parameters (PARSING) #2604

Closed jordwalke closed 4 years ago

jordwalke commented 4 years ago

This is a non-breaking change to Reason parser to implement Reason Syntax v4 Angle Brackets type parameters. This diff only implements the parsing, and they will be reprinted as parenthesis. In a follow up diff I can implement the printing. With this change, all existing Reason code will continue to be parsed, it just adds a new way to express type parameters.

type t<'a> = option<list<'a>>;