Skip to content

Comment on Zig – SPIR-V Backend Progressparent

Comments

Capability passing and dependency injection are just convoluted ways to describe passing parameters instead of using globals.

Capability passing is just extending that to the level of imports. Your files do not import the global I/O library and then use io.print(). They are passed a I/O library as the parameter {io} which defines a print() function and then call io.print().

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.