[chuck-users] Are array types really classes ?
Andrew C. Smith
acsmith at willamette.edu
Thu Sep 3 09:18:11 EDT 2009
I'm not really sure where to start making a dent in your LiCK classes.
What do the classes do exactly, and do you have any examples of LiCK
in use? I'm seeing lots of classes like Atan that just take
Math.atan(x), and I'm wondering how that helps. Also, I'm assuming it
takes 1.2.2 since it uses array operators like << and .size and all
(that's the connection to our current thread). Thanks,
2009/9/2 Kassen <signal.automatique at gmail.com>:
>> Seems more likely that foo has-a float rather than foo is-a float.
>> I'm curious, what would you want to extend a float for?
> Probably stuff like sorting, removing duplicates, etc.
> We can't BTW. Arrays are indeed objects (you can for example assign them)
> but they might not really be classes as such. I'm really not sure there, it
> seems like arrays are more or less a construct on their own that gets
> applied to a given class. The "concept of array" doesn't seem to have a name
> beyond being hinted at by using square brackets in ChucK. I'm not sure how
> it should be extended, syntactically, but I could see uses to that.
> Here be dragons, let's first sort out the issues of the type system
> (particularly as it applies to arrays), then look onwards.
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
More information about the chuck-users