4 ms·
The most useful didactic feature I've found in ML-like languages--Haskell for me, but they're all somewhat similar--was pattern matching. Honestly, pattern matc
by tikhonj 14y ago
The most useful didactic feature I've found in ML-like languages--Haskell for me, but they're all somewhat similar--was pattern matching. Honestly, pattern matching is what really got me to understand recursion. It also makes the language feel much more declarative than using `if` and `cond` statements.
- gnosis 14y agoIt's possible to do pattern matching in Scheme, though it's not standardized (AFAIK). Here are some approaches: https://curiousprogrammer.wordpress.com/2006/12/08/pattern-matching-in-scheme/ https://curiousprogrammer.wordpress.com/2006/12/08/pattern-m... http://www.javaist.com/blog/2008/11/12/pattern-matching-in-scheme/ http://www.javaist.com/blog/2008/11/12/pattern-matching-in-s... http://wiki.call-cc.org/eggref/3/pmatch http://wiki.call-cc.org/eggref/3/pmatch http://wiki.call-cc.org/man/3/Pattern%20matching.html http://wiki.call-cc.org/man/3/Pattern%20matching.html http://www.ccs.neu.edu/home/samth/match-ifl-full.pdf http://www.ccs.neu.edu/home/samth/match-ifl-full.pdf http://download.plt-scheme.org/doc/203/html/mzlib/mzlib-Z-H-19.html#%_chap_19 http://download.plt-scheme.org/doc/203/html/mzlib/mzlib-Z-H-...