Jonathan Hsu
1 min readMay 12, 2020

John,

I appreciate your views. I was resistant to the ternary operator as well when I first started learning to program in PHP. It was not intuitive and I’d rather write an if/else.

However, I think there’s a difference between learning the ternary operator as a new programmer and trying to adopt it after long periods of being used to if/else.

Clarity is an odd thing that way, you’ll inevitably be conditioned to some code being easier to read than others based on your experiences.

Regardless, your opinion is important and shared by others. Thanks for sharing it with me and the rest of the community.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

No responses yet

Write a response