Fresh Swift
  • About
  • Tags
Fresh Swift

#identifier


Strongly typed identifiers in Swift

Strings as identifiers are always a bit dangerous, leaving the door open to typos and resulting bugs. However, as Tom Lokhorst describes in this post, we can do better. Tom looks at a few options to transform our String identifiers into strongly typed identifiers. Of the ideas presented, I prefer the second alternative.

Posted on July 18, 2017

#string  #identifier 

 •  2021  •  Fresh Swift

Hugo v0.81.0 powered  •  Theme by Beautiful Jekyll adapted to Beautiful Hugo