Re:Whenever.js: A JavaScript reinterpretation of the Wheneve...
by SchizoDuckie on Wednesday August 26, 2015 @03:16AM
(#10121553)
What is the architectural use case for passing function names as strings? You could just pass the named function around imo and not lose IDE Code completion and all that.
[ Parent
| on HN ]
Re:Whenever.js: A JavaScript reinterpretation of the Wheneve...
by beeperbot on Wednesday August 26, 2015 @02:51PM
(#10125199)
Right now you're correct, we could just pass the functions. In the future, however, we'd like to extend the language so that you can call `remove` with a regex to make it easier to remove "groups" of functions (so that, every time you add a new function of a particular "group", you don't have go back to every spot where you remove things of that group and add another line).
There are a few other things we need to fix before we get there though, chief among those being memory use