Tom Prince tom.pri...@ualberta.net writes:
Perhaps
,---
| (defun main-function (args)
| (let ((var (assoc :key1 args))) ; extracting var once
| ...
On Thu, 27 Oct 2011 20:03:22 +0200
Thorsten wrote:
Hi List,
doing some Elisp programming (in an orgmode context) recently, the
following question with regards to the 'accepted programming style' for
Elisp concerned me:
How independent and self-sustained should helper functions be?
I
Štěpán Němec step...@gmail.com writes:
On Thu, 27 Oct 2011 20:03:22 +0200
Thorsten wrote:
Hi List, doing some Elisp programming (in an orgmode context)
recently, the following question with regards to the 'accepted
programming style' for Elisp concerned me:
How independent and
Thorsten quintf...@googlemail.com wrote:
Štěpán Němec step...@gmail.com writes:
On Thu, 27 Oct 2011 20:03:22 +0200
Thorsten wrote:
Hi List, doing some Elisp programming (in an orgmode context)
recently, the following question with regards to the 'accepted
programming style' for
Thorsten quintf...@googlemail.com writes:
Too bad you didn't give any concrete examples.
The problem can be described easily:
problem-specific helper-funcions (some redundancy avoided)
,---
| (defun main-function (args)
The problem can be described easily:
problem-specific helper-funcions (some redundancy avoided)
,---
| (defun main-function (args)
| (let ((var (assoc :key1 args))) ; extracting var once
| ...
Tassilo Horn tass...@member.fsf.org writes:
Thorsten quintf...@googlemail.com writes:
Too bad you didn't give any concrete examples.
The problem can be described easily:
problem-specific helper-funcions (some redundancy avoided)
Eric Schulte schulte.e...@gmail.com writes:
Hi Eric,
Hmmm, this looks suspiciously like the case in some Babel functions :)
well ... ;)
in which we originally has instances of the first style and then had to
manually transition to the second. IMO the first is very poor form, the
Nick Dokos nicholas.do...@hp.com writes:
Not a problem - you can't predict the future. You do the best you can
with your current knowledge. You can always refactor in the future:
that's one reason that having the source code around is important. When
you refactor, you may be cursing the
Perhaps
,---
| (defun main-function (args)
| (let ((var (assoc :key1 args))) ; extracting var once
| ...
| (helper-function1 ... var ...) ; inside
[...]
Would that be considered bad style from the original author, or is that
up to personal choice and not considered a problem?
Not a problem - you can't predict the future. You do the best you can
with your current knowledge. You can always refactor in the future:
that's one reason
Hi List,
doing some Elisp programming (in an orgmode context) recently, the
following question with regards to the 'accepted programming style' for
Elisp concerned me:
How independent and self-sustained should helper functions be?
I found some redundancy in elisp code, e.g. several (main and
12 matches
Mail list logo