Re: "macros" in miniPicoLisp

2024-03-02 Thread C K Kashyap
Thanks Alex! On Sat, Mar 2, 2024 at 1:02 PM Alexander Burger wrote: > On Sat, Mar 02, 2024 at 10:05:00AM -0800, C K Kashyap wrote: > > Another installment of the video - > > https://www.youtube.com/watch?v=O52fRAsr7Vg > > Very nice indeed! This is probably the first time PiccLisp does something

Re: "macros" in miniPicoLisp

2024-03-02 Thread Alexander Burger
On Sat, Mar 02, 2024 at 10:05:00AM -0800, C K Kashyap wrote: > Another installment of the video - > https://www.youtube.com/watch?v=O52fRAsr7Vg Very nice indeed! This is probably the first time PiccLisp does something non~triwial on Windows. Tharks for sharing! ☺/ A!ex -- UNSUBSCRIBE:

Re: "macros" in miniPicoLisp

2024-03-02 Thread C K Kashyap
Another installment of the video - https://www.youtube.com/watch?v=O52fRAsr7Vg I think my over 15 years of pursuit of finding the perfect programming language is complete :) - The sad thing is that I had discovered PicoLisp long ago but had discarded it because it was "just an interpreter" :) I am

Re: "macros" in miniPicoLisp

2024-02-09 Thread C K Kashyap
Super! - thank Alex. On Fri, Feb 9, 2024 at 11:17 AM Alexander Burger wrote: > Hi Kashyap, > > > Does this look like a reasonable way to create the "create-adder" > function? > > > > (de create-adder Args > >(let > > (N (car Args) > > Adder (intern (pack "add-" N)) > >

Re: "macros" in miniPicoLisp

2024-02-09 Thread Alexander Burger
Hi Kashyap, > Does this look like a reasonable way to create the "create-adder" function? > > (de create-adder Args >(let > (N (car Args) > Adder (intern (pack "add-" N)) > P > (list > 'de > Adder > '(X) > (list

Re: Macros

2012-11-09 Thread Alexander Burger
Hi Axel, I suppose you mean that you want to arrange syntax in a complex manner, then evaluate it and you are concerned about the cost of rearranging every time the function/macro is called. Suppose also that this rearranging can be done as soon as you know the code inside the macro form, in

Re: Macros

2012-01-25 Thread Alexander Burger
Hi Imran + Tomas, in addition to Tomas' perfect explanation, let me add one note to: BTW, is it possible to create your own reader macro's? Creating reader macros is not built-in in picolisp. However, you can write your own reader if you think it's important. That shouldn't be that

Re: Macros

2012-01-24 Thread Imran Rafique
Thanks for the detailed response Alex. Sorry for taking so long to respond. Comments inline ... On 23 January 2012 14:53, Alexander Burger a...@software-lab.de wrote: But one of the key things which make me feel comfortable in any lisp is the knowledge that I can effectively re-arrange the