Is Swift a dynamic or static language?

前端 未结 4 546
生来不讨喜
生来不讨喜 2020-12-15 03:23

I\'m just curious if Swift is dynamic like php or static, I mean can I generate classes while an application is running?

4条回答
  •  天命终不由人
    2020-12-15 04:11

    Only when you'd like to use objective c library. Swift is inherently static typed. They just give you interface so as you can gradually move to swift.

提交回复
热议问题