Hacker News new | ask | show | jobs
by imaginenore 4349 days ago
Javascript doesn't have operator overloading, but it doesn't stop you from doing

    "foo".replace('oo', 'ood') + " tasty"
I don't see why PHP can't treat strings specially as well.