[Gimp-developer] changes in script-fu in 2.3.14
Raphaël Quinet
raphael at gimp.org
Tue Jan 30 01:57:07 PST 2007
On Tue, 30 Jan 2007 08:24:40 +0100, Sven Neumann <sven at gimp.org> wrote:
> On Tue, 2007-01-30 at 09:11 +0200, Alexander Rabtchevich wrote:
> > But the inability to use global
> > variables along with scheme syntaxes leads to a good deal of parentheses
> > which could be a problem to a programmer.
>
> I don't see how this introduces the need for more parentheses.
Just to prove that point, a couple of weeks ago I fixed a bug in a
script that looked like this:
(define (some-function ...)
(begin
(set! undeclared-var some-value)
(... more code ...)
))
Fixing this problem was easy and made the code shorter:
(define (some-function ...)
(let ((declared-var some-value))
(... more code ...)
))
-Raphaël
More information about the Gimp-developer
mailing list