Re: Syntax-rules generate symbol

2013-09-10 Thread Ian Price
Panicz Maciej Godek writes: > I assume that the main reason for using this is efficiency (rather > than simplicity), because allegedly guile's continuations are rather > inefficient. Primarily, it's an efficiency hack, but you can also make a case that it better if you can tell at a glance that t

Re: Syntax-rules generate symbol

2013-09-10 Thread Ian Price
Dmitry Bogatov writes: > Hello! > > Here is my implementation of for loop. I found lisp really extremely > flexible, but there is one problem --- more often then not I do not need > var part, so I do not care how it would be named --- all I care is that > it will not shadow any other bindings. >

Re: Syntax-rules generate symbol

2013-09-10 Thread Taylan Ulrich B.
Panicz Maciej Godek writes: > I assume that the main reason for using this is efficiency (rather > than simplicity), because allegedly guile's continuations are rather > inefficient. > > On one hand, it's good to know that (and would be even better > to be able to find it out by skimming section

Re: Syntax-rules generate symbol

2013-09-09 Thread Panicz Maciej Godek
2013/9/9 Taylan Ulrich B. > > For anyone who didn't know, "breaking" to arbitrary places is made > simple (and efficient) with `let/ec' from the module (ice-9 control), a > wrapper around `call-with-escape-continuation': > [...] I assume that the main reason for using this is efficiency (rather

Re: Syntax-rules generate symbol

2013-09-09 Thread Taylan Ulrich B.
Panicz Maciej Godek writes: > Actually, the whole point of hygienic (syntax-rules) macros > is that you don't need to worry about the names of variables. > > I often use a very similar python-like for loop macro in my projects: > > http://hg.gnu.org.ua/hgweb/slayer/file/554a63bd3c6c/guile-modules

Re: Syntax-rules generate symbol

2013-09-09 Thread Panicz Maciej Godek
2013/9/9 Dmitry Bogatov > > Hello! > > Here is my implementation of for loop. I found lisp really extremely > flexible, but there is one problem --- more often then not I do not need > var part, so I do not care how it would be named --- all I care is that > it will not shadow any other bindings.

Syntax-rules generate symbol

2013-09-09 Thread Dmitry Bogatov
Hello! Here is my implementation of for loop. I found lisp really extremely flexible, but there is one problem --- more often then not I do not need var part, so I do not care how it would be named --- all I care is that it will not shadow any other bindings. I think I can do it(did not tryed it