logoalt Hacker News

adamwktoday at 4:52 PM1 replyview on HN

The subject of the function coloring article was callback APIs in Node, so an argument you need to pass to your IO functions is very much in the spirit of colored functions and has the same limitations.


Replies

jakelazarofftoday at 4:57 PM

In Zig's case you pass the argument whether or not it's asynchronous, though. The caller controls the behavior, not the function being called.

show 1 reply