by vectorpush · 12y ago · 0 comments
You can say this about any programming language feature or concept.
However that being said 2.days.ago is not a particularly differentiating bit of magic because as has been stated elsewhere every object oriented language that allows extensions of primitive types will allow this.
The main question here though is whether 2.days.ago is a good design and does it really demonstrate expressiveness, which as has also been stated above related more to the concept of "small pieces, loosely joined"
2.days.ago breaks encapsulation and abstraction and inverts the flow of control (parameter calls function).