I love how in Ruby doing class DoesStuffService def call(x, y) # ... end end is good design but if you do def do_stuff(x, y) end you're a monster
That's pretty neat. What I really want though is the ability to import un-namespaced functions.
-
-
It does that, here's an example: Function is defined/exported here: https://github.com/digital-fabric/modulation/blob/2615d8d9acc05a5fad5a2f3e3153a6d8925dad5a/examples/callable/factorial.rb … And imported/invoked here: https://github.com/digital-fabric/modulation/blob/master/examples/callable/app.rb …
-
I guess `.()` is probably as close as we can ever get
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
