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

Re: [sc-users] smalltalk




On Dec 26, 2004, at 5:57 PM, Tom Gersic wrote:

Hi All,

So I've seen in a few places that the Supercollider language is based on Smalltalk. However, from every example of Smalltalk that I've been able to find, the syntax looks entirely different. Out of curiosity, why the discrepancy?


SC is based on the object model of Smalltalk, not the syntax.
SC uses a different syntax than Smalltalk because Smalltalk syntax does not allow for:

default arguments
var-args ( "..." in SC)
out-of-order keyword arguments

Smalltalk has a keyword syntax. If you are going to have keyword arguments then I think they should be allowed in any order. But Smalltalk doesn't.