Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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().



Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: