[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Plist-put changes literal argument
From: |
Noam Postavsky |
Subject: |
Re: Plist-put changes literal argument |
Date: |
Wed, 2 Sep 2020 20:53:45 -0400 |
On Wed, 2 Sep 2020 at 20:18, Yuan Fu <casouri@gmail.com> wrote:
> Ok, think more of it, it would be weird to make a full copy of cons
> (and other non-primitive values) on function call. I wonder how do
> other languages deal with this, because I never run into problems like
> this (except for in Python, with its default argument values).
In most languages you can't write a quoted list literal, so you would
end up writing code equivalent to
(defun test ()
(test-2 (list :a 'b)))