(programming, informal) A binary operator that returns its first operand if that operand evaluates to true, and otherwise evaluates and returns its second operand.
Elvis operator
ユーザー入力をチェックするとき、入力が偽と評価される場合にデフォルト値を提供するために、最初のオペランドが真と評価されればそれを返し、そうでなければ2番目のオペランドを評価して返す二項演算子をよく使います。
アカウントを持っていませんか? 新規登録
アカウントを持っていますか? ログイン
DiQt(ディクト)
無料
★★★★★★★★★★