syntax
syntax copied to clipboard
Inline apply syntax for functors is not supported
Functors provide a way to describe your types in a more concise way. Compare these two examples:
Belt.Map.t<Name.t, animal, Name.identity>
MapOf(Name).t<animal>
In Reason it works perfectly fine
In Rescript it results in a syntax error.
This can be circumvented by
module NameMap = MapOf(Name)
let xs: NameMap.t<animal> = failwith("impl")
but this far cry from clean inline declaration that is available in Reason.