6 ms·
Looks interesting. However, does the following not mean that it's not portable? > Note that if Shen is not running on a Lisp platform, then function may be nee
by mp8 12y ago
Looks interesting.
However, does the following not mean that it's not portable?
> Note that if Shen is not running on a Lisp platform, then function may be needed to disambiguate those symbol arguments that denote functions.
- tizoc 12y agoIt means that to be portable you have to wrap symbols that represent functions in (function <the-symbol>) when passing them as arguments. Not doing so will work on some ports but not on others, and should be considered "undefined behaviour". Portable: (foldl (function +) 0 [1 2 3]) May work depending on the backend: (foldl + 0 [1 2 3])