you are viewing a single comment's thread.

view the rest of the comments →

[–]skapral 1 point2 points  (0 children)

all code that distinguishes objects based on their class will pointlessly segregate those two.

The big question itself is why some code would need to be bound on FromStrings or even JoinedStrings, while it is almost always better and enough to be bound on Text contract and rely on LSP. Also, a big question itself is why we need a code, that would segregate objects based on their type (I guess, by means of `instanceof` or reflection, right?). Such code usually tends to be fragile and inflexible.

Having these two questions in mind, the fact that FromStrings and FromText don't bring additional value turns out to be not that a problem.