2 ms·
> A single line can invoke arbitrary behaviour. Isn't that true of any language with even the simplest mechanism for abstraction? How about this go code?
by wtetzner 11y ago
> A single line can invoke arbitrary behaviour.
Isn't that true of any language with even the simplest mechanism for abstraction?
How about this go code?
doStuff(1, 2)
It could "update some rows in a database, write a file, or make an HTTP request."
- nickysielicki 11y agoI think that's fundementally different, you know you're calling a function there. An example in golang would be something like: type foo struct { a string b int c *someOtherStruct } var blah = foo{"example", 42, nil} blah.b = someMagicVariable