From what I can tell it's far more convenient to have API that throws than take out parameter in swift. Currently this is how you have to list threads:
var error: NSError? = nil
let threads = Textile.instance().threads.list(&error)
if let reason = error {
print("Threads Error: \(reason).")
} else {
print("Threads: \(threads).")
}
From what I can tell it's far more convenient to have API that throws than take out parameter in swift. Currently this is how you have to list threads:
It would be more convenient if
list
threw error