Swift/Declaration/let: Difference between revisions

From Azupedia
Jump to navigation Jump to search
imported>Fire
Created page with "定数を定義するときに使用する。変更しない場合は、varよりもこちらを推奨。 <syntaxhighlight lang="Swift"> let constant name: type = expression </syntaxhighlight> == External Link == [https://www.swiftlangjp.com/language-reference/declarations.html#%E5%AE%9A%E6%95%B0%E5%AE%A3%E8%A8%80constant-declaration The Swift Programming language] let"
 
(No difference)

Latest revision as of 21:04, 10 November 2022

定数を定義するときに使用する。変更しない場合は、varよりもこちらを推奨。

let constant name: type = expression

External Link

The Swift Programming language