3 ms·
In TS, an object is close to being kwargs. My main issue is that it’s much more verbose since you separately write the destructure and type, so you have to writ
by goodoldneon 4y ago
In TS, an object is close to being kwargs. My main issue is that it’s much more verbose since you separately write the destructure and type, so you have to write the args twice.
But one nice thing is that consumption is less verbose than Python. In Python you write “greet(name=name)” but in TS you write “greet({name})”