For the draft grammar, switch to using f::<T>(arg) syntax instead of f<T>(arg) syntax. Since this is in an expression context (instead of a type context), this explicit type instantiation is ambiguous with the < operator. This feedback came up during the March 2023 TC39 meeting.
I believe the ambiguity would come up with an example like this:
For the draft grammar, switch to using
f::<T>(arg)
syntax instead off<T>(arg)
syntax. Since this is in an expression context (instead of a type context), this explicit type instantiation is ambiguous with the<
operator. This feedback came up during the March 2023 TC39 meeting.I believe the ambiguity would come up with an example like this:
This can be parsed as
Or as RelationalExpressions.