2 ms·
> Are there any parser considerations Yes, in fact I can point to two different cases related to usage of angled brackets for generics: 1) Typescript claims t
by lhorie 6y ago
> Are there any parser considerations
Yes, in fact I can point to two different cases related to usage of angled brackets for generics:
1) Typescript claims to be a superset of JS, but it isn't, precisely because of this. `a<b,c>(d)` parses as a call to `a(d)` in TS, but parses to two comparisons in JS
2) D explicitly chose `!(foo)` syntax for templates over the `<foo>` syntax in order to avoid the parsing ambiguities problem