Skip to content

Comment on "this gem is awesome".to_spanish # = "esta joya es impresionante"parent

Comments

It's only elegant until you have two libraries which want to add `foo` to a `Bar`. Then you're in the world of pain compared to writing `lib1->foo($myBar);`

Actually I agree, I'm rather against giving programmers ability to extend native objects at free will, but I'm still for strings being objects in PHP, or even having "everything-is-an-object" approach there.

I'd rather have the common case be gorgeous and have the uncommon case require a some workaround, than have every case look like crap.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.