Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
より好ましい代替手段はありますか?
もちろん、それは優れた設計であり、誰もがそれを期待することを知っており、ネストされた条件を使用することに勝っています。
短絡評価は、ほとんどの最新のプログラミング言語の重要な機能であり、これに依存しない理由はありません。それがなければ、ポインター関連のテストは (不必要に) はるかに複雑になり、読みにくくなります。