Closed ddavidebor closed 8 years ago
Now apparently if a datasource and a chainable have the same term one will overwrite the other.
Regarding #174 we have created a datasource called .maths()
and a chainable called math()
but it's not the cleanest implementation.
No, you can not overload in this manner, and I'd prefer not, for simplicity's sake. You could always start a chain with .static(0)
Thy will be done
can datasources and chainables (such as
.divide()
) be overloaded like in this silly example?example:
The hypothetical chainable/datasource hybrid "addFromZero(x)" behave as follows:
can this be easily done or is it a mess?
Davide