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
2
developer.apple.com/library/prerel seems to mostly favor classes. Comments? Trying to grok perf of call-by-value.
4
Replying to
Some fancier specifics: the compiler has enough info that it could pass stack structs byref in simple cases.
Replying to
Right, if no mutating in callee. So what are non-simple cases / why does array need to be special?
1
Basically array is special because it allows broader sharing of the backing buffer across array ops.
1
1
4
Show replies



