ternary operator 中文意思是什麼
ternary operator
解釋
三元運算元-
Although c ( where this operator originated ) prides itself on being a terse language, and the ternary operator might have been introduced partly for efficiency, you should be somewhat wary of using it on an everyday basis ? it ' s easy to produce unreadable code
盡管c引以為傲的就是它是一種簡練的語言,而且三元運算符的引入多半就是為了體現這種高效率的編程,但假若您打算頻繁用它,還是要先多作一些思量? ?它很容易就會產生可讀性極差的代碼。
分享友人