Okay,
I would like to propose that Transducers be considered for addition to the
Swift core.
"Transducers are a powerful and composable way to build algorithmic
transformations that you can reuse in many contexts…"
There are ways to build them w/out any language modification but they are not
as efficient as alternative expressions.
Here are some example implementations to give you an idea.
https://gist.github.com/rjchatfield/14e2869b0c572696ea3c
<https://gist.github.com/rjchatfield/14e2869b0c572696ea3c>
https://github.com/mbrandonw/learn-transducers-playground/blob/master/transducers.md
<https://github.com/mbrandonw/learn-transducers-playground/blob/master/transducers.md>
https://gist.github.com/hsavit1/0791bc9a54d11608ed6d
<https://gist.github.com/hsavit1/0791bc9a54d11608ed6d>
I look forward to your thoughts and comments.
-jason
Transducers are Coming — Cognitect Blog
<http://blog.cognitect.com/blog/2014/8/6/transducers-are-coming>
A presentation by Rich Hickey
https://www.youtube.com/watch?v=6mTbuzafcII
<https://www.youtube.com/watch?v=6mTbuzafcII>_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution