These are chat archives for supercollider/supercollider

29th
May 2017
Nathan Ho
@snappizz
May 29 2017 01:38
idea for later: let's improve the primitive syntax
reverse { this.tryPrimitive(\ArrayReverse, { ... }) }?
LFSaw
@LFSaw
May 29 2017 09:47
wouldn't this introduce one more function call?
Brian Heim
@brianlheim
May 29 2017 13:03
compiler could be tweaked to optimize
LFSaw
@LFSaw
May 29 2017 16:46
then I'm for it.
:)
Nathan Ho
@snappizz
May 29 2017 18:23
another idea would be to introduce a special syntax like reverse primitive ArrayReverse else { ... }
because then we aren't pretending that tryPrimitive is an actual method call
but on the other hand, the smalltalk spirit is all about minimal syntax, so i dunno
Brian Heim
@brianlheim
May 29 2017 18:46
it would be nice to free up _-prepended tokens for use in the general language
not so that we can start naming random things with _'s, it could be used for some other special category
Nathan Ho
@snappizz
May 29 2017 19:00
private methods?
Brian Heim
@brianlheim
May 29 2017 19:01
i've thought about that, not really convinced SC needs them
reading some forum threads about it softened my attitude a bit
coming from java/c++ i was initially super concerned about access modifiers
but i guess that's how smalltalk works and it hasn't really ruined the language, the pr-prefix convention seems to work OK