Author Topic: variables variables ...  (Read 4124 times)

0 Members and 1 Guest are viewing this topic.

kdub

  • Mesozoic relic
  • SuperMod
  • Swamp Rat
  • Posts: 1368
  • class keyThumper<T>:ILazy<T>
Re: variables variables ...
« Reply #15 on: February 18, 2009, 06:52:21 PM »
Lets put it another way then ..

To me,

(++ 'x) is easy to read

(setq x (1+ x))  is easy to read

the latter is almost 6 times faster.
the latter does not require an additional function.



called Kerry in my other life

Sometimes the question is more important than the answer.
#ridesober

MP

  • Seagull
  • Posts: 17446
Re: variables variables ...
« Reply #16 on: February 18, 2009, 09:53:16 PM »
While I understand the initial intrigue with the technique (I toyed with it at one time) I see no benefit to the ++ / --  substitution code with what's been posted to date, in fact, to me it's a detriment, because it strays from normal / expected behavior. One will have to be very clear in the application's documentation, rationalizing and explaining the proper use of the wrapper and make its side effects known. The additional documentation, precautions, potential for difficult to trace bugs, reduced efficiency in exchange for a nominal reduction in typing and debatable improvement to reading clarity? Sorry but pass.
« Last Edit: February 18, 2009, 10:13:56 PM by MP »
\|// Set goal. Experiment tirelessly until
|Oo| practice has become expertise.  Loop.
|- | LinkedIn | Dropbox