Hacker News new | ask | show | jobs
by ipaddr 1670 days ago
PHP is elegant and useful. The spread operator is ...$array is elegant. $var ? "not found"; is really elegant.
2 comments

It’s also about ten years later than everyone else to get those splat and null coalesce operators so it’s not like that elegance is unique or even timely for PHP.
Your post is 10 years too late because we are talking about php today. PHP was elegant in different ways 10 years ago.
I think you meant ?? or ?= ?