TerryCK
7/18/2017 - 3:05 AM

anotherClosure.swift

    lazy var asHTML: () -> String = {
        [weak self] in
        guard let this = self else { return "" }
        return "<\(this.name)>\(this.text)</\(this.name)>"
    }
    //換個角度來看self,先用guard let 安全的解包 optional self,在來使用this