Post

Replies

Boosts

Views

Activity

Reply to "private lazy var ..." thread safe?
Are you sure, you need lazy var for it? There is no heavy calculation and self using. Why you don't use let? private lazy var regExTrimSet = NSCharacterSet(charactersInString: " \t\r\n_") Or just do it NSCharacterSet static property via extension.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
May ’22