ログインすると広告が減り、学習に集中できます。
広告
検索結果- 英語 - 英語
Yoda condition
名詞
くだけた表現
(programming,
informal)
A
logical
condition
with
the
usual
order
of
operands
reversed
—
e.g.
if
(18
==
age)
rather
than
if
(age
==
18)
—
for
various
reasons,
such
as
avoiding
accidental
misuse
of
=
(assignment)
instead
of
==
(equality),
a
mistake
that
is
harder
to
spot
when
using
the
normal
order
of
operands.
日本語の意味
プログラミングにおける論理条件を表現する手法の一つで、通常のオペランドの順序(例: if(age == 18))の代わりに、オペランドの順序を反転させた条件式(例: if(18 == age))を書く方法。これは、代入演算子(=)と等価演算子(==)の誤用を防ぐために利用される。
関連語