Created
November 18, 2015 08:10
-
-
Save externvoid/455c482295221f03b15c to your computer and use it in GitHub Desktop.
判定(比較)==, ===の違い
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
●Swiftでの2つの参照値が参照している2つのインスタンスの中身(値)の比較:== | |
例:let a = ..., let b = ..., if a == b {...} | |
●Swiftでの参照値が同一のオブジェクトを参照しているかの判定(比較):=== | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment