Re: changes in script-fu in 2.3.14

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 30 Jan 2007 08:24:40 +0100, Sven Neumann <sven@xxxxxxxx> 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
_______________________________________________
Gimp-developer mailing list
Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux