6 ms·
Const variables are traditionally initialized at compiled time. In Swift, let may be initialized at runtime and then becomes immutable.
by donarb 4y ago
Const variables are traditionally initialized at compiled time. In Swift, let may be initialized at runtime and then becomes immutable.
- tekknik 4y agothat’s just a choice by the language designer. nothing prohibits initialization at runtime.