3 ms·
Another option that's not quite as good as `a + b + c` but that is possible with TypeScript is a fluent API: const sum = a.add(b).add(c);
by killthebuddha 3y ago
Another option that's not quite as good as `a + b + c` but that is possible with TypeScript is a fluent API:
const sum = a.add(b).add(c);
- leeoniya 3y agoor add(a,b,c)
- praeclarum 3y agoYes that syntax works right now.
- mlajtos 3y agoIndeed. "Object-oriented" fluent notation is basically equivalent to infix notation. https://mlajtos.mu/posts/new-kind-of-paper-2 https://mlajtos.mu/posts/new-kind-of-paper-2