[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] What is syntax lifting?
- From: John Cowan <johnwcowan@gmail.com>
- To: Dimitre Novatchev <dnovatchev@gmail.com>
- Date: Wed, 4 Sep 2019 12:57:20 -0400
But map and friends are *procedural* (functional) lifting. Syntactic lifting, as far as I know, exists only in languages with syntactic abstraction (macros). My grasp of macros beyond C, defmacro, and syntax-rules isn't particularly good, though.
And something more understandable ...
"
In languages which support first-class functions, map
may be partially applied to lift a function that works on only one value to an element-wise equivalent that works on an entire container; for example, map square
is a Haskell function which squares each element of a list."
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]