loading...

Discussion on: What do you think about the ternary operator?

Collapse
pkristiancz profile image
Patrik Kristian

I like ternaries very much. Sometimes when options are longer i go with folowing formating:

$foo = $isFooConsideredBar
    ? $fooIsIndeedConsideredBar
    : $fooIsNoWayCknsideredBar
;