What is the difference between `let` and `var` in swift?

后端 未结 30 1328
隐瞒了意图╮
隐瞒了意图╮ 2020-11-22 11:09

What is the difference between let and var in Apple\'s Swift language?

In my understanding, it is a compiled language but it does not check

30条回答
  •  不要未来只要你来
    2020-11-22 11:44

    “Use let to make a constant and var to make a variable”

    Excerpt From: Apple Inc. “The Swift Programming Language.” iBooks. https://itun.es/us/jEUH0.l

提交回复
热议问题