2 ms·
In your language of choice: static_function(db, other, arguments) { ... } test { static_function(fake_db, 1, 2) } You can even omit the db in the stan
by viraptor 9y ago
In your language of choice:
static_function(db, other, arguments) { ... }
test { static_function(fake_db, 1, 2) }
You can even omit the db in the standard case if your language allows default keyword arguments. In almost every language, a method is just a fancy static call that takes extra arguments implicitly. (Closures are poor man's objects, objects are poor man's closures...)