• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Swift Generics Error When Enforcing Protocol Conformance...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Swift Generics Error When Enforcing Protocol Conformance...


  • Subject: Re: Swift Generics Error When Enforcing Protocol Conformance...
  • From: Quincey Morris <email@hidden>
  • Date: Thu, 24 Dec 2015 21:18:21 -0800
  • Feedback-id: 167118m:167118agrif8a:167118sR49F_ORPD:SMTPCORP

On Dec 24, 2015, at 15:55 , Peters, Brandon <email@hidden> wrote:
>
> Maybe they will “remedy” it in the forever.

A bug report would probably be a good idea. Either FloatingPointType should include arithmetic behavior (along the lines of the integer type protocol), or there should be a protocol that abstracts the arithmetic behavior and Float and Double should conform to it.

BTW, it looks like there’s a 3rd floating point type ‘Float80’ in there. It has the arithmetic operations but *doesn’t* conform to FloatingPointType. That might be an oversight, too.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >Swift Generics Error When Enforcing Protocol Conformance... (From: "Peters, Brandon" <email@hidden>)
 >Re: Swift Generics Error When Enforcing Protocol Conformance... (From: Quincey Morris <email@hidden>)
 >Re: Swift Generics Error When Enforcing Protocol Conformance... (From: "Peters, Brandon" <email@hidden>)
 >Re: Swift Generics Error When Enforcing Protocol Conformance... (From: Quincey Morris <email@hidden>)
 >Re: Swift Generics Error When Enforcing Protocol Conformance... (From: "Peters, Brandon" <email@hidden>)
 >Re: Swift Generics Error When Enforcing Protocol Conformance... (From: "Peters, Brandon" <email@hidden>)
 >Re: Swift Generics Error When Enforcing Protocol Conformance... (From: Quincey Morris <email@hidden>)
 >Re: Swift Generics Error When Enforcing Protocol Conformance... (From: "Peters, Brandon" <email@hidden>)

  • Prev by Date: Re: Hurdles in converting to Swift
  • Next by Date: Re: Hurdles in converting to Swift
  • Previous by thread: Re: Swift Generics Error When Enforcing Protocol Conformance...
  • Next by thread: NSScroll view - horizontal scroll bar does not appear when swiping across screen
  • Index(es):
    • Date
    • Thread