On Tue, Dec 27, 2016 at 08:49:10AM +0100, Alexander Burger wrote:
> > > On Mon, Dec 26, 2016 at 10:25 PM, Erik Gustafson <
> Thanks Erik for the great explanation and the article!

I feel I should also mention that the purpose of

   (setq A 'value)


   (set 'A 'value)

is not at all to avoid some typing. In fact, the overall numbers of characters
is the same ;)

It is the *function* call overhead, which is relatively expensive. As you know,
the quote character is a read macro, so that

   (set 'A 'value)

expands to

   (set (quote . A) (quote . value))

immediately when the expression is read. The evaluation of the arguments to
'set' thus triggers the analysis of the expression (quote . A) followed by the
'quote' call.

- Alex
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to