zlacker
[parent]
[thread]
3 comments
1. killth+(OP)
[view]
[source]
2023-05-20 03:11:15
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);
replies(3):
>>leeoni+P
>>praecl+86
>>mlajto+Cs
◧
2. leeoni+P
[view]
[source]
2023-05-20 03:21:43
>>killth+(OP)
or add(a,b,c)
◧
3. praecl+86
[view]
[source]
2023-05-20 04:34:51
>>killth+(OP)
Yes that syntax works right now.
◧
4. mlajto+Cs
[view]
[source]
2023-05-20 10:53:31
>>killth+(OP)
Indeed. "Object-oriented" fluent notation is basically equivalent to infix notation.
https://mlajtos.mu/posts/new-kind-of-paper-2
[go to top]