[swift-evolution] [Draft] Expanded min/max algorithms
Dmitri Gribenko
gribozavr at gmail.com
Mon Apr 18 11:08:36 CDT 2016
On Sun, Apr 17, 2016 at 11:10 AM, Matthew Johnson via swift-evolution
<swift-evolution at swift.org> wrote:
> These extension points are effectively “optional protocol requirements”.
I'm sorry, but they are not optional requirements. They are
workarounds for a language issue -- inability to make
conditionally-available methods customizable by a conforming type.
Dmitri
--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
More information about the swift-evolution
mailing list