Hi,
I would love to hear your opinion on the idea of “combining RDoc and RSpec to create testable documentation”. Let me explain:
Given you have several RDoc files like this one:
= Examples Some example code snippets.
Hi,
I would love to hear your opinion on the idea of “combining RDoc and RSpec to create testable documentation”. Let me explain:
Given you have several RDoc files like this one:
= Examples Some example code snippets.
| ;; fizzbuzz without conditionals in Clojure | |
| ; Simple patten matching using a single map lookup | |
| (defn fizzbuzz [x] | |
| (let [v [(= (mod x 3) 0) (= (mod x 5) 0)]] | |
| ({[true false] "fizz" | |
| [false true] "buzz" | |
| [true true] "fizzbuzz" | |
| [false false] x} v))) |