[swift-evolution] [Proposal] Rename fatalError() API

Tony Allevato tony.allevato at gmail.com
Fri Jan 6 21:58:47 CST 2017


Why not take advantage of emoji identifiers?

let 🔜 = { fatalError($0) }
func foo(x: Int) -> Int {
  🔜("implement this")
}


Major drawback: Difficult-to-impossible to read on dark color schemes.


On Fri, Jan 6, 2017 at 6:54 PM David Sweeris via swift-evolution <
swift-evolution at swift.org> wrote:

>
> On Jan 6, 2017, at 16:03, Derrick Ho <wh1pch81n at gmail.com> wrote:
>
> +1️⃣ for unsafecompilable
> On Fri, Jan 6, 2017 at 6:22 PM Benjamin Spratling via swift-evolution <
> swift-evolution at swift.org> wrote:
>
>
>
> -Ben
>
> Sent from my iPhone.
>
> > On Jan 6, 2017, at 5:15 PM, David Sweeris via swift-evolution <
> swift-evolution at swift.org> wrote:
> >
> > I wouldn’t be horribly opposed to adding a function called
> “willItToCompile”, “compileAnyway”, “noSrslyIDontCare”, or some other
> equally explicit name, simply because that way it’d be easy to ensure that
> all such code was revisited before shipping the product.
>
> Come on, it's swift, it'd have to be named something like,
> "UnsafeCompilable".  :)
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
>
>
> Lol, +1
> _______________________________________________
> 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/20170107/269ebc7a/attachment.html>


More information about the swift-evolution mailing list