[swift-evolution] renaming CustomStringConvertible

Vladimir.S svabox at gmail.com
Fri Jul 1 14:24:39 CDT 2016


On 01.07.2016 22:16, Eric Habberstad via swift-evolution wrote:
>
> To the Swift community,
>
> May I put forth a couple of new names for the following protocol:
>
>
> - CustomStringConvertible  —   rename as ‘Descriptive’ or as ‘Revealable’

Strong +1 from me. It looks and reads nice, clearly shows the meaning of 
the protocol i.e. what it for : to describe the type. I.e. the conformed 
type could be described. Don't think we need `String` word here as it is 
IMO clearly that description is usually a text describing something.

>
>
> Two goals for Swift is clarity and joy in use of the language, so I
> strongly feel that ‘Custom-‘ not be part of any new name here since it
> contributes little except verbosity, and ‘-String-‘ should be dropped too
> since ‘CustomStringConvertible’ has nothing to do with the String struct
> proper.  The protocol only consists of the *var description*, after all.
>
> Of course, the corollary would be ‘DebugDescriptive’ or ‘DebugRevealable’
>
> I did consider ‘Describable’ as a name but to me ‘Descriptive’ looks and
> sounds better and captures the essence of what CustomStringConvertible
> really is.  ‘Revealable’ as an alternate sounds, pardon the pun, almost as
> descriptive and has a bit of a classier ring to it.
>
> This is a followup, albeit partial, to the final review of proposal SE-0041
> which noted that the community was quite positive about the stated need to
> rename this and some other protocols, but just needs agreement on new names.
>
> — Eric
>
>
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
>


More information about the swift-evolution mailing list