Re: quote form in picolisp

2021-12-16 Thread Tomas Hlavaty
On Thu 16 Dec 2021 at 21:48, Alexander Burger wrote: > 'quote' is the mother of all functions. It does nothing, and just returns > Args. > No need for "special forms"! Because there is no concept of compiler. Compilation in picolisp is done ahead of time manually in another language. --

Re: quote form in picolisp

2021-12-16 Thread rick
Look for the book to come out soon: “Zen and the Art of Programming Language Development” :) On Thu, 16 Dec 2021 15:48 -05:00, Alexander Burger wrote: > Hi all, > > this whole discussion got ridiculously complicated. > > But in fact it is so simple! > > A function call in PicoLisp is *always*

Re: quote form in picolisp

2021-12-16 Thread Alexander Burger
Hi all, this whole discussion got ridiculously complicated. But in fact it is so simple! A function call in PicoLisp is *always* just a single cell: +-+--+ | Fun | Args | +-+--+ Both Fun and Args can be anything (number, symbol or pair). If Fun is a number,

Re: quote form in picolisp

2021-12-16 Thread Alexander Burger
On Thu, Dec 16, 2021 at 12:09:03PM +0100, pd wrote: > On Thu, Dec 16, 2021 at 10:24 AM Alexander Burger > wrote: > > First of all, forget other Lisps! I always say it is best if you start with > > PicoLisp without knowing "Lisp". > > :) That's a nice advice but sadly I feel I can't do that ;-)

Re: quote form in picolisp

2021-12-16 Thread Andras Pahi
Hi, McCarthy’s "A micro-manual for Lisp" in 1978 lists 10 rules as the core of LISP. The first rule states the behavior of QUOTE. If you select a different set of rules, you get a different LISP. In picoLisp QUOTE is defined differently. Regards, Andras Pahi > On 2021. Dec 16., at 12:17, pd

Re: quote form in picolisp

2021-12-16 Thread pd
On Thu, Dec 16, 2021 at 11:51 AM wrote: > > In which practical use case do you ever need such an abhorrent nesting of > quotes? > it's not a question of practical use but compatibility and tradition, also a question of semantics > But I'm having doubts about this being not just a superficial

Re: quote form in picolisp

2021-12-16 Thread pd
Thanks for your explanation, Alex On Thu, Dec 16, 2021 at 10:24 AM Alexander Burger wrote: > > First of all, forget other Lisps! I always say it is best if you start with > PicoLisp without knowing "Lisp". > :) That's a nice advice but sadly I feel I can't do that ;-) > The term "improper

Re: quote form in picolisp

2021-12-16 Thread andreas
Hi pd, On 16.12.21 10:17, pd wrote: > : (quote (quote (quote a))) > -> (quote (quote a))           In which practical use case do you ever need such an abhorrent nesting of quotes? If you need ''a or even a in code, then I strongly suspect your software design is not appropriate for the

Re: quote form in picolisp

2021-12-16 Thread pd
On Thu, Dec 16, 2021 at 6:35 AM Danilo Kordic wrote: > Hi pd > > It seems You are looking for Wikipedia/Currying . What are Your further > thoughts? > No I don't > > What do You think about Wikipedia/De_Bruijn_index ? > I think it's an interesting proposal for using with lambda

Re: quote form in picolisp

2021-12-16 Thread pd
On Thu, Dec 16, 2021 at 12:20 AM pd wrote: > This way the syntax and behaviour in picolist is not internally > coherent, every function application must be a list but for quote, which > can be not a list but an improper list. > > Maybe I'm misunderstanding something. > > indeed the example in

Re: quote form in picolisp

2021-12-16 Thread Alexander Burger
Hi pd, > - it breaks compatibility with almost all lisp out there > ... > Maybe I'm misunderstanding something. Perhaps, though at a deeper level. First of all, forget other Lisps! I always say it is best if you start with PicoLisp without knowing "Lisp". Lisp dialects differ a lot, but