Comment on Simpler UI Reasoning with Unidirectional Dataflow and Immutable DataparentComments−amelius11yExplicitly building a dependency graph is cumbersome. I'd rather see my programming language (compiler) building it implicitly as the program runs.−davexunit11yWhat? It's no different than saying which inputs are passed to a function. Also, languages with macros can add some nice syntactical sugar on top. JavaScript, of course, doesn't have a macro system so there's not much we can do there in that regard.−amelius11yIt's no different than saying which inputs are passed to a function.In that case, why isn't it just (more or less) equal in syntax to a function call?Why do I need to build a graph, where a functional language would just let me build it implicitly.
Comments
Explicitly building a dependency graph is cumbersome. I'd rather see my programming language (compiler) building it implicitly as the program runs.
What? It's no different than saying which inputs are passed to a function. Also, languages with macros can add some nice syntactical sugar on top. JavaScript, of course, doesn't have a macro system so there's not much we can do there in that regard.
In that case, why isn't it just (more or less) equal in syntax to a function call?
Why do I need to build a graph, where a functional language would just let me build it implicitly.