> On Dec 16, 2016, at 15:54, Richard Wei via swift-users 
> <swift-users@swift.org> wrote:
> 
> Thanks. That’s true, but there are cases (like making BLAS calls) where I 
> have to nest more than 4 `withUnsafeMutable…` closures. It’s safe by really 
> clumsy. I just wish there were a cleaner way that looks like the do-notation 
> in Haskell or for-notation in Scala.

You might be able to do something with wrapper functions or operators. As long 
as you tell the compiler to always inline them, I don't think that'd cause any 
performance issues.

- Dave Sweeris
_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

Reply via email to