Get the latest tech news

Zig's new I/O: function coloring is inevitable?


Functions always have color and Zig's new I/O won't help it

This is the example Zig code from that post, that writes data to two files asynchronously: To see why, let’s compare function signatures of red (blocking) and blue (non-blocking) versions of saveData with a few modifications that make my argument a bit more clear: Understanding this moves the problem from computer science to the programming language design - how to make it more convenient?

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Function

Function

Photo of zig

zig

Photo of new I

new I

Related news:

News photo

Zig's New Async I/O

News photo

Show HN: I made Logic gates using CSS if() function

News photo

Self-hosted x86 back end is now default in debug mode