[chuck-users] ChucK Inconsistencies...

Kassen Oud kassen at kassen.mine.nu
Sun Feb 26 21:09:01 EST 2006

>> (0.0) => spork ~ doit;	// not valid
>> spork ~ (0.0) => doit;	// not valid
>> spork ~ doit(0.0);

> Hmm, interesting.  We should discuss this more, as we
want flexibility, but we should take care to keep things
somewhat clear.  The second line seems more reasonable
than the first, and is consistent.  We will leave this
for the upcoming spork update to add and fix spork

Hmmmmm, in my opinion even the second line is confusing. The ChucK operater denotes action or singal flow and to me in the second line the "spork" word is what should be seen as the thing causing the action. If we want something like this I think it should be seen as a speciffic form of ChucKing, much like "@=>" or "+=>" and it would be more natural to have something along the lines of;

(0.0) ~=> doit;

Here it would be a new operator that like the others sends data to a target (in this case a new shred). That seems quite natural to me while the second option above has two bits that basically denote the same thing; data is being send. This seems needlessly verbose to me which would be a bad thing for live coding.

Or I could be missing something, I din't quite considder this for as long as one should before one starts typing but then again that in itself seems quite ChucKian in a way.... :¬)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20060227/00262405/attachment.htm

More information about the chuck-users mailing list