> Running on macOS 10.12.6, Xcode 8.3.2, I get to the copyItem call, which
> shows an error on the console:
>
> 2017-11-11 11:18:25.931446+1000 MyApp[32662:2408351] open on /path/to/file:
> Permission denied
>
> But it doesn't go to either of my catch blocks, but goes to the following
> line,
I have code as follows:
let fileManager = FileManager.default
do {
try fileManager.createDirectory(at:
destination.deletingLastPathComponent(), withIntermediateDirectories:
true, attributes: nil)
try fileManager.copyItem(at: source, to: destination)
handler(true, nil)
}
catch let t
Hi swift-users,
I’m sharing a project I created in academia. DLVM is a modern compiler
infrastructure for deep learning systems, inspired obviously by LLVM and SIL.
DLVM has a linear algebra IR, automatic differentiation, domain-specific
optimizations and a CPU/GPU code generator. NNKit, a stag
> On Nov 8, 2017, at 5:41 PM, Kelvin Ma via swift-users
> wrote:
>
> yikes there’s no less verbose way to do that? and if the type isn’t an
> integer there’s no way to avoid the default initialization? Can this be done
> with opaques or something?
It would be reasonable to put this all in e