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

Sean Heber sean at fifthace.com
Tue Jun 28 21:08:31 CDT 2016


What about..

Syntax.ConvertibleFromIntegerLiteral
etc..

l8r
Sean

Sent from my iPad

> On Jun 28, 2016, at 8:52 PM, Matthew Johnson via swift-evolution <swift-evolution at swift.org> wrote:
> 
> 
>>> On Jun 28, 2016, at 8:35 PM, Erica Sadun via swift-evolution <swift-evolution at swift.org> wrote:
>>> 
>>> 
>>>> On Jun 28, 2016, at 6:13 PM, Dave Abrahams <dabrahams at apple.com> wrote:
>>>> Or we're clueless AND it's a bad name.
>>> 
>>> It's possible, but until we have an objective rationale for why it's bad
>>> (arguments that it seems to imply what turns out to be the actual
>>> meaning of the protocol don't count!), *and* a better alternative, it's
>>> sort of moot.  If you don't like `Syntax.IntegerLiteral` or
>>> `Syntax.IntegerLiteralExpressible` then I'm out of suggestions.
>>> 
>>>> func f<T: IntegerPromotion>() -> T {
>>>>    return 42 // the answer to everything
>>>> }
>>> 
>>> Promotion means something very different; something that we actually
>>> expect to incorporate into the language one day.
>> 
>> Next pitch:
>> Syntax.IntegerLiteralInsertion
>> Less successful attempts to brainstorm:
>> Syntax.IntegerLiteralAdvancement
>> Syntax.IntegerLiteralUpgrade
>> Syntax.FreelyIntegerReplaceable
>> Syntax.IntegerParkour
>> Syntax.TodayTheRoleOfTWillBePlayedByIntegerLiteral
>> Syntax.IntegerLiteralTypePoseur
>> Syntax.IntegerLiteral.Zigazigahh
>> Syntax.IntegerLiteralBoosterPack
>> Syntax.IntegerLevelUp
>> Syntax.IntegerElevator
>> Syntax.MarvinTheDepressedIntegerLiteral
> You really have me laughing with some of these!  Thanks Erica. :)
> 
> 
>> -- E
>> 
>> 
>> 
>> _______________________________________________
>> swift-evolution mailing list
>> swift-evolution at swift.org
>> https://lists.swift.org/mailman/listinfo/swift-evolution
> 
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160628/8eab9676/attachment.html>


More information about the swift-evolution mailing list