(combinatorics joke) How many legs does a cow have? 12 -- Two in the front, two in the back, two on the left, two on the right and four in the corners.
Also, I think one solution would be to somehow "scope" the extensions. So an extension created in one location doesn't apply everywhere but is limited in some way.
This could also help make larger projects work: if two programs extend some class but in a conflicting way, there should be a way to get the two programs to work together without rewriting too much stuff.
if it performs a is Set, it should obviously return true
but if doStuffObj() calls a is Set, then you're saying it should return false
(Assuming class A is in another library)
yeah, I think I'm not going to have adapters. It's already pretty easy to do what I want to do at the object scope, and putting it at the class scope causes too many problems IMO
Some other speculation: what happens if there's more than one way to interpret a class as a set? As in, what if it implements both Set<Dog> and Set<Cat>? Meaning that there's now overloaded add() and remove() functions.
I recently thought whether you could see the regular n-gons or n-hedrons as some kind of solution to an optimization problem. My idea was (in the plane case) that you consider a number of particles in the interior of a circle (or a sphere in th 3d case) that repell eachother, and then finding a constellation that minimizes the energy.
For thee points/triangle this obviously works with pretty much any "good" repulsive force law.
@El'endiaStarman Actually, that would be for 9 points. I don't quite remember what 7 points was - maybe it was a square-ish shape and a triangle-ish shape?
I currently work on a legacy system for a company. The system is really old - and although I was hired as a programmer, my job is pretty much glorified data entry. To summarise, I get a bunch of requirements, which is literally just lots of data for each month on spreadsheets and I have to config...
cmc: find a set of nontrivial functions (e.g. not on a 1-element set, and not the identity function) that commute wrt to composition, but such that the set is closed under composition and does not contain the identity function.