4 ms·
You can do it in any language with first class functions and reflection. Here's a stupid simple js implementation of their example: https://gist.github.com/38
by grayrest 14y ago
You can do it in any language with first class functions and reflection.
Here's a stupid simple js implementation of their example:
https://gist.github.com/3874826 https://gist.github.com/3874826
Edit: Loaded the page and got interrupted by lunch. Shows me for not refreshing.
- w01fe 14y agoThat's awesome -- thanks for posting
- grayrest 14y agoThanks for writing it up. I've thought about dataflow programming before but building the dependency graph up was always annoying and the idea of sticking everything in a map and building the dep chains by introspecting the argument names hadn't occurred to me. With the ease of use solved this is handy enough that I'll probably turn it into a real promise-based utility.
- w01fe 14y agoAwesome, I'm excited to see what you come up with. If you do end up making something, please email me a link (I wrote you earlier) since I'm sure there's lots to be improved in our implementation.