Blogs / Personal blogs

Marcin Krzyżanowski

blog.krzyzanowskim.com

About technology, iOS, macOS and Swift

Popular posts
3
Total points
359
HN comments
132
Rank
#7,493 personal

Visit blog.krzyzanowskim.com → RSS feedOn Hacker News Mar 2015 – Aug 2025

Software Engineering 1Programming Languages 1Tech Industry & Business 1

1

Swift: Madness of Generic Integer

Handling Integers with Swift is not the easiest task. Especially when I need the generic function that can do some work on any kind of Integer. There are 11 Integer types that can be considered as Integers: * Int8 * UInt8 * Int16 * UInt16 * Int32 * UInt32 * Int64 * UInt64 * Int * UInt * Bit (I'll