Hacker News new | ask | show | jobs
by cercatrova 1369 days ago
Indeed, it's basically the same as in JS/TS where you just pass an object of key/values rather than have named arguments.
1 comments

Yes, but it is a lot cleaner there because you don't need to specify the name of the type and you don't need to do anything special for optional arguments.

I wouldn't mind if it worked this way "under the hood" but syntax sugar for passing that last argument as keyword arguments would be a fantastic quality of life improvement.