Search found 613 matches

by ramarren
Mon Jul 14, 2008 5:28 am
Forum: Common Lisp
Topic: Passing values by reference
Replies: 12
Views: 30830

Re: Passing values by reference

As far as I understand, function call parameters (even vectors, sequences, etc.) are passed by value (the form is evaluated, yielding the vector, sequence, etc. and the value is passed as a function parameter). I'm afraid you understand wrong (unless it's me). There is no implicit copying in Common...
by ramarren
Sun Jul 13, 2008 11:59 pm
Forum: Common Lisp
Topic: Naming style question
Replies: 1
Views: 9255

Re: Naming style question

So, which would you as a programmer using the package prefer to have to deal with? I think that depends on how many other symbols the package has, and how often are they supposed to be used. If few and rarely, then they might just as well be prefixed, and hence READ and WRITE are good. If many and ...
by ramarren
Fri Jul 11, 2008 8:28 am
Forum: The Lounge
Topic: Thinking Functional
Replies: 6
Views: 15724

Re: Thinking Functional

I have to mutate something or copy whole hierarchies on every change. Google for functional data structures. The most basic case is keeping everything in binary trees, then you need to copy only log(n) elements on every change. Essentially only the tree nodes directly above the modified elements ha...