stampit-org / stamp-specification

The Stamp Specification: Composables
434 stars 16 forks source link

Does single stamp needs multiple initializers? #90

Closed danielkcz closed 8 years ago

danielkcz commented 8 years ago

I am wondering if it wouldn't be worth it have singular initializer along the initializers. Considering that stamps are usually rather small, might be rather rare to actually have multiple initializers there. Can we talk about some use cases where it might be beneficial to split initializer code into multiple functions within single stamp?

ericelliott commented 8 years ago

Are you suggesting that we remove the ability to assign multiple initializers to a single stamp? Why?

If you use an init() helper function that can take a single function as an argument, does it make any difference at all to the usability?

koresar commented 8 years ago

With stampit v3 you can have singular initializer:

stampit({ init: function () {} });
danielkcz commented 8 years ago

Are you suggesting that we remove the ability to assign multiple initializers to a single stamp? Why?

Yea sorry, I have ability to express my thoughts rather badly :) I kinda wrote this before I had fully realized difference between descriptor and that stampit adds these functions there. It was meant like there could be both of these in spec. Nevermind me :)