[CCC DEV] Interfaces within "Plumbing"

Matt Jadud matt at jadud.com
Sat Jan 22 17:22:02 GMT 2011


On Sat, Jan 22, 2011 at 12:00, Steve Pretty
<steve.g.pretty at btinternet.com> wrote:
> I wonder if there is not a case for applying Occam's Razor here - eliminate
> both these entities and use the standard BOOL throughout?

:)

I'll have to think about it. We wrestled quite a bit with it, and I
agree: it is annoying at times. The SIGNAL is nice in places where you
really do have a valueless signal:

CHAN SIGNAL s:
...
  s ! SIGNAL
...

But, yes, the LEVEL type can be annoying -- but, it is semantically
more appropriate than mapping TRUE/FALSE. But, if HIGH/LOW cause more
convolution than is useful, have we actually made things "simpler"
than if we just used BOOL types?

We're certainly willing to discuss this -- the Plumbing API is not so
mature that we shouldn't look at this critically. That said, we
weren't completely arbitrary, and our goal is to try and keep mappings
to the real world wherever is appropriate. I have to run to a
rehearsal, and want to push a book update this weekend if at all
possible, so this won't change right away. But, I'm happy to see some
discussion on it.

Cheers,
M



More information about the developers mailing list