Skip to content

Instantly share code, notes, and snippets.

@externvoid
Created November 18, 2015 08:10
Show Gist options
  • Save externvoid/455c482295221f03b15c to your computer and use it in GitHub Desktop.
Save externvoid/455c482295221f03b15c to your computer and use it in GitHub Desktop.
判定(比較)==, ===の違い
●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