▲ | ChocolateGod 8 days ago | |||||||
Why not just make types psuedo-objects? $myString.trim().replace("w", "h"); Which has the advantage of also offering a clean alternative to the fragmented stdlib. | ||||||||
▲ | williamdclt 7 days ago | parent | next [-] | |||||||
> Why not just make types psuedo-objects? With this sort of "just" I could build Paris out of matchsticks | ||||||||
▲ | reddalo 8 days ago | parent | prev | next [-] | |||||||
I agree. But in PHP it would probably be like this: $myString->trim()->replace("w", "h"); | ||||||||
| ||||||||
▲ | account42 7 days ago | parent | prev [-] | |||||||
Because duplicating the stdlib is probably not a good idea. |