4 ms·
Completely pointless tangent: the article uses `unwrap`ping as the -ing form of `unwrap`. That looks weird to me. It occurs to me that `X`->`X`ing is a better r
by edflsafoiewq 7y ago
Completely pointless tangent: the article uses `unwrap`ping as the -ing form of `unwrap`. That looks weird to me. It occurs to me that `X`->`X`ing is a better rule because of things like `leave`ing (not `leav`ing).
- saghm 7y agoMy guess is that they used that spelling because "unwrapping" is a real word, and that's how it's spelled. Tangentially, the word itself is spelled that way to preserve the vowel sound of "unwrap"; without the second "p", the "a" sound would turn from a short "a" to a long "a". A good heuristic for this sort of thing is that a syllable that ends with a consonant will make a short vowel sound, whereas one that ends with a vowel will have that vowel sound be long.
- steveklabnik 7y agoYes, that's exactly why.
- foldr 7y ago>My guess is that they used that spelling because "unwrapping" is a real word, and that's how it's spelled. Yes, obviously, but you're missing OP's point. When the keyword is backticked it doesn't really make sense to adjust its spelling based on the addition of the -ing affix, since in some cases this would also require deletion of letters at the end of the keyword -- which clearly should remain unaltered when backticked. Thus, the only sensible and consistent rule is not to make spelling adjustments when adding -ing to backticked keywords. Not that any of this matters at all!
- asplake 7y agoOften, avoiding ‘ing’ reads better anyway. “More useful messages when unwrap() panics” would have been fine.
- _-___________-_ 7y agoRight: in my mind, by putting the () there, they're basically making it shorthand for "More useful messages when the `unwrap` function panics"