9 ms·
Much of the spec and the lib for the ruby version reads like it was written by a clojurist. That may sound funny, but it was all written by David Chelimsky, a l
by pselbert 12y ago
Much of the spec and the lib for the ruby version reads like it was written by a clojurist. That may sound funny, but it was all written by David Chelimsky, a long time rubyist who maintained RSpec.
To me the most interesting aspect of the Ruby implementation is the use of pseudo macros that meta-program most of the implementation.
- zimbatm 12y agoAgreed, the code could be made a bit more idiomatic. Introducing a Transducable module would also make sense in the OOP perspective. Replacing Transducer.transduce(transducer, ...) calls with transducer.transduce(...), same with Transducer.compose