And it's usage is far less generalised than macros in LISP.
It is not an usual solution to write acamlp4 preprocessor.
On Mon, Aug 23, 2010 at 1:06 PM, Meikel Brandmeyer wrote:
> Hi,
>
> On 23 Aug., 14:03, Nicolas Oury wrote:
>
>> If the AST of LISP were more complicated, this kind of program wo
Hi,
On 23 Aug., 14:03, Nicolas Oury wrote:
> If the AST of LISP were more complicated, this kind of program would
> be more complicated.
eg. see OCaml's camlp4. I found it complicated compared to Lisp style
macros.
Sincerely
Meikel
--
You received this message because you are subscribed to t
On Mon, Aug 23, 2010 at 3:45 AM, Victor Olteanu wrote:
> Some examples to illustrate this would be very welcome.
>
Any macro is an example of that.
For example, from clojure/core.clj
(defmacro ->
"Threads the expr through the forms. Inserts x as the
second item in the first form, making a lis
Some examples to illustrate this would be very welcome.
On Aug 22, 2010, at 9:17 AM, Nicolas Oury wrote:
> On Sun, Aug 22, 2010 at 11:30 AM, Belun wrote:
>> why does everything have to be a data structure ? like (operation
>> parameter parameter ...)
>
> Because it makes really easy to do me
Belun wrote:
> why does everything have to be a data structure ? like (operation
> parameter parameter ...)
I assume you can see why parameters are data structures (or just plain
data, if you want speed). Operations - or function calls - are data
structures because it makes sense. Especially in Li
On Sun, Aug 22, 2010 at 3:30 AM, Belun wrote:
> why does everything have to be a data structure ? like (operation
> parameter parameter ...)
because people got lazy and didn't implement m-exprs? :-)
sincerely.
--
You received this message because you are subscribed to the Google
Groups "Clojur
On Sun, Aug 22, 2010 at 11:30 AM, Belun wrote:
> why does everything have to be a data structure ? like (operation
> parameter parameter ...)
Because it makes really easy to do meta-programming.
If you want to generate some code, it is easier to do so if you just
have to construct a data structur
On Sun, Aug 22, 2010 at 12:30, Belun wrote:
> why does everything have to be a data structure ? like (operation
> parameter parameter ...)
Because Clojure is a Lisp. Lisps are homoiconic [1]. Clojure wouldn't
be a Lisp if programs weren't data.
[1] http://en.wikipedia.org/wiki/Homoiconicity
//
why does everything have to be a data structure ? like (operation
parameter parameter ...)
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - p