ScalarArithmetic for Swift
github.com
github.com
My first workaround was to go down the conditional compilation path by using the "#if arch([...])" directive and writing specific code for 32-bit/64-bit. Of course, that works, but it just doesn't feel right, so I went with a casting solution instead.
Hopefully this will be ironed out in subsequent beta versions of Xcode, so that we can feel a little more confident about this issue in advance of the final production version of Xcode.
At least the only casting you need to do is when doing
myDouble = myPoint.x // This works on 64 bit out of the box but not 32bit.
For now I try to avoid setting like that.
Everything else including myDouble += myPoint.x should work fine with the library.
Right this very moment there's a REST library for Haskell on the front page, and Javascript libraries for various purposes show up on a semi-regular basis. Libraries, code, and frameworks for frivolous and serious purposes, for old and new languages alike, are constantly being posted to Hacker News. I honestly don't see how this is any different, except for this backlash to phantom hype which I find frankly quite puzzling.
Also, I might have stolen your description as it is far better than mine :)
"better interoperability between 32 and 64-bit numerical types"