[swift-evolution] [Proposal Draft] Literal Syntax Protocols

Brent Royal-Gordon brent at architechies.com
Wed Jun 29 17:04:40 CDT 2016


> On Jun 29, 2016, at 7:41 AM, Matthew Johnson via swift-evolution <swift-evolution at swift.org> wrote:
> 
> `Syntax.IntegerLiteralType` is another that popped into my mind this morning.  I don’t recall if that has been mentioned yet.  The idea here is that an integer literal *can be typed as* a type that conforms to this protocol (the type suffix *is not* used in the sense that it used to be used in things like `SequenceType` which had the semantic that conforming types *are* sequences).  

Throwing my hat in:

IntegerLiteralCandidate (with or without a Syntax. prefix)

As in, when you see an integer literal and need to infer its actual type, this type is a candidate.

-- 
Brent Royal-Gordon
Architechies



More information about the swift-evolution mailing list