Re:Let the Type System do the Work
by dllthomas on Tuesday April 22, 2014 @06:25AM
(#7626784)
"So you've got to typedef single-field structs instead."
Which, thankfully, don't add any runtime cost (as should be expected).
As an aside, you don't actually need to typedef them at that point, but it saves you having to write "struct ..." everywhere so it's typically worthwhile.
Which, thankfully, don't add any runtime cost (as should be expected).
As an aside, you don't actually need to typedef them at that point, but it saves you having to write "struct ..." everywhere so it's typically worthwhile.