3 ms·
> There is no equivalent for async. Sure there is, a symmetrical one: you can embed the Future/Promise inside one of the return value of you sync function. Bo
by littlestymaar 6y ago
> There is no equivalent for async.
Sure there is, a symmetrical one: you can embed the Future/Promise inside one of the return value of you sync function. Both work, but both are equally hackish.
> If you were going to be serious about function coloring in zig, the place where there is function coloring is functions with error return values
I actually address it a bit below.
- dnautics 6y agoNo, your understanding is not correct. It's not "hackish" to embed your allocator in your object, sometimes it is the correct, domain driven choice to make. I know it's done somewhere in zig stdlib (parser, iirc).