@isaiah Help me remember something. I remember reading, or being told, that there were specific reasons to avoid, in Objective-C, providing a property named exactly id
. Like, besides the way it creates human confusion as an exact match for the reserved keyword id
, there was some reason (or reasons) beyond that which made it inadvisable to do so. I cannot recall the specific reasons anymore, and Google absolutely fails to find my answers. Can you recall what the specific reasons were?
=> More informations about this toot | More toots from jaredsinclair@mastodon.social
@jaredsinclair @isaiah id alone doesn’t give the compiler any info about what messages the object conforms to, so can be a source of trouble if something changes. id is fine and common!
=> More informations about this toot | More toots from jimdusseau@mastodon.social
@jimdusseau @jaredsinclair @isaiah you're talking about using id as a type, but the question was about using id as property or method name
=> More informations about this toot | More toots from nicklockwood@mastodon.social This content has been proxied by September (ba2dc).Proxy Information
text/gemini