Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
killthebuddha
on May 20, 2023
|
parent
|
context
|
favorite
| on:
PyTorch for WebGPU
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);
mlajtos
on May 20, 2023
|
next
[–]
Indeed. "Object-oriented" fluent notation is basically equivalent to infix notation.
https://mlajtos.mu/posts/new-kind-of-paper-2
praeclarum
on May 20, 2023
|
prev
|
next
[–]
Yes that syntax works right now.
leeoniya
on May 20, 2023
|
prev
[–]
or add(a,b,c)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: