Curious: why do you use classes instead of structs for implementations in swiftz?
Conversation
no reason. I'm probably going to end up switching them to structs where I can.
1
Replying to
developer.apple.com/library/prerel seems to mostly favor classes. Comments? Trying to grok perf of call-by-value.
4
YES. Please more re: note there that "Swift manages all value copying to ensure optimal performance"
1
1
Show replies
Replying to
Wait, do structs actually have better performance than objects in Swift?
1
Yes, just like in C. No malloc, no virtual dispatch.
2




