Re:Why Isn't Functional Programming the Norm? [video]
by enlyth on Friday October 18, 2019 @06:57PM
(#21295719)
See this is one of the things I personally hate, accessing or evaluating properties on objects using a string.
We have code so use code which can be parsed, evaluated by the type checker, and so on. What if you mistype 'fop' instead of 'foo'?
It’s nice to be able to make a function as concisely as something like:
Const foo_finder = R.find( R.propEq( ‘prop’, ‘foo’ ) )
...
Const a_foo = foo_finder( a_list )