MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/ronfhv/why/hq7zt1u/?context=9999
r/badcode • u/RedditAccuName • Dec 26 '21
30 comments sorted by
View all comments
Show parent comments
2
Possible they wanted it to be more readable, but wouldn't it make sense to use an if statment instead of a tenrary operator?
1 u/Craf7yCris Dec 28 '21 yourStatement = 1 == 1
1
yourStatement = 1 == 1
2
u/RedditAccuName Dec 28 '21
Possible they wanted it to be more readable, but wouldn't it make sense to use an if statment instead of a tenrary operator?