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

Uniform names

This page is part of the web mail archives of SRFI 39 from before July 7th, 2015. The new archives for SRFI 39 contain all messages, not just those from before July 7th, 2015.

This SRFI has a lot of good in it, but I'm glad the thread-specific
aspects are being treated separately.

A minor suggestion. One of the nice things about Scheme is it's
relatively uniform names. With this in mind, I'd propose:

   (make-parameter initial-value converter) => parameter
   (set-parameter! parameter value)

Then, as Olin Scrivers suggested, add the library procedure and derived

   (with-parameter parameter value thunk)
   (let-parameter ((parameter value) ...) body)
   (let-parameter* ((parameter value) ...) body)

When you do deal with threads, please be careful when using the phrase
"mutable parameter", as different types of parameter can be "mutable"
with different semantics (for example, globally shared, shared between
parents and children, not shared). Please use a more specific term, like
thread-local, depending on the exactly what you mean.


Dr Alan Watson
Instituto de Astronomía UNAM