Re:Data flow syntax: The missing piece for the success of fu...
by dwenzek on Friday July 17, 2015 @05:08AM
(#9901837)
The post is interesting and highlights a true fact : it is not always easy to chain map/filter/reduce transformations when the processed values are compound and call for processing that are specific to each part.
Nonetheless, the proposed solution is most in the component/object realm rather in the functional world.
As an evidence the use of nouns rather verbs as in :
This is not a judgement, just a remark. A functional solution would rather use transformation combinators to propagate a transformation on a specific value part.
For instance :
Nonetheless, the proposed solution is most in the component/object realm rather in the functional world.
As an evidence the use of nouns rather verbs as in :
This is not a judgement, just a remark. A functional solution would rather use transformation combinators to propagate a transformation on a specific value part. For instance : Or even better, use lenses as a generic way to unpack a specific part of a data structure and to repack an updated value: