Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

TCL is a better Scheme

Name: Anonymous 2016-05-10 23:02

This is a tail-recursive naive implementation of factorial for TCL 8.6:
proc fac-tr {n {k 1}} {
if {$n <= 1} {
return $k
} else {
tailcall fac-tr [- $n 1] [* $n $k]
}
}

Name: Anonymous 2016-05-11 11:02

>>12
Manipulating an AST with what is basically a regexp preprocessing hack doesn't help me when I just want to load a file format or write data for a protocol. How would a macro help me decode a PNG, for example? This attitude that the only things worth having are in Lisp is why Lisp does nothing useful.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List