3 ms·
Yes, that's a much nicer protocol demo. When you end up writing switches on types in your protocol implementation ... it fails to demonstrate any particular ad
by jashkenas 15y ago
Yes, that's a much nicer protocol demo.
When you end up writing switches on types in your protocol implementation ... it fails to demonstrate any particular advantage over switching on types in a simple function.
- swannodette 15y agoGlad you think so. Thanks stevelosh. I avoided taking the extra step since I was writing for people of varying levels of familiarity with JavaScript, CoffeeScript, and ClojureScript. But perhaps I'm a bit old school - I explained something with a minor flaw to leave something for the reader to solve :)
- iamgilesbowkett 15y agoAs a busy person who finds your ideas interesting but has no time for riddles, I would really appreciate it if you could at least drop some hints here.