This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: difficulty of writing translators



> This is perfectly reasonable.  The trick is not letting people
> accidentally change the value without running the code.  It seems
> valuable to have a standard. 

That I agree with entirely.

The major advantage to variable watches is that you get an interface
that (at least superficially) needs no explanation, and you *know*
your code had a chance to run when someone changed that var.

Set/get functions provide the latter property, but they only provide
the former if there's a standard.