[Golist] Sequence Question
Moses Gunesch
moses at goasap.org
Fri Feb 22 00:06:03 PST 2008
Speaking of,
a question on my mind about the Sequence architecture:
I really wanted to structure things so that inputs & outputs could be
custom typed. Hence the rather strange way that there is no common
interface like ISequence and sequence classes have to custom implement
getters like currentStep() etc. to return the correct type.
The "normal" way to work with AS3's restrictions on overriding
datatypes is to force the user to cast return values constantly. So
far I've run into one situation where I wished there was a common
interface but, I guess my logic was that if you are working with one
sequencer you'll stick to it, you're not going to work with two of the
same thing. Also, chances are there won't be too many more sequencers
written, maybe a small handful but it's not where Go coders are going
to spend their time.
So although it's not terribly standard the way I did it, I still think
it might be better, just to be able to use commonly known methods but
with correct datatypes & no casting.
Opinions on that issue if you got 'em...
- m
More information about the GoList
mailing list