LoginSignup
1
0

More than 5 years have passed since last update.

Swiftでは変数名に日本語を使える

Posted at

Swift勉強中

Swiftでは変数名に日本語が使えるらしい。

let 消費税 = 0.05
let 原価 = 10000.0
let 税込価格 = 原価 * (1.0 + 消費税)

// 10500.0
print(税込価格)

凄いけど、使い道はあまり無さそう。
英語が存在しないような業務で利用する・・・?
なんかソースコードが書き下された詳細設計書と同じ匂いがしてくる。
豆知識程度に。

1
0
2

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
0