1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Swiftメモ:⚠️Initialization of immutable value 'xxxxxx' was never used;の意味

Last updated at Posted at 2019-12-28

Xcodeでコードを書いていると表示される↓の:warning:

Initialization of immutable value 'xxxxxx' was never used; consider replacing with assignment to '_' or removing it

書き進めるといつの間にか消える時もあるのはなぜなのか?

調べてみると

「'xxxxxx'の変数・定数が使用されていないけど大丈夫?削除します?」

とお知らせしてくれているというもの。

コードを書き進めて変数・定数が使用されると表示されなくなるので
いつの間にか消えていると思ってしまっていました。

基盤系だとプログラミングの開発環境に触れる機会がないので
こういう心遣いに戸惑いつつもありがたい😭

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?