5 ms·
Yes, this articulates what I was thinking very well. Binary relations / operators are a good example of 2. Things that could be infix operators but can’t becau
by jwdunne 5y ago
Yes, this articulates what I was thinking very well.
Binary relations / operators are a good example of 2. Things that could be infix operators but can’t because language. It’d be a nightmare if those functions required an object as an interface.
As with everything design, there is no hard and fast rule. Keyword arguments / passing an object make wonderfully clear interfaces in a number of situations and it’s helpful to have them. But applying the pattern everywhere would be a complete disaster.