Closed Pacman99 closed 1 year ago
I like the general idea, but there are many small issues I'd like to discuss.
rebased and updated with your feedback, I still have to write tests for these changes
Existing code allows for this already, so no need for this
pop {
defaults.value = 1;
extension = self: super: {
incValue = num: extendPop self (self: super: { value = super.value + num; });
};
}
Extenders are functions that are part of the pop that extend the pop in a specific way when called.
For example:
Would return:
I also added an unpop function to reside within a pop, so you can do
p.__unpop__
instead oflib.unpop p
.TODO