[swift-evolution] Proposal: failable numeric conversion initializers

Dmitri Gribenko gribozavr at gmail.com
Mon Dec 7 11:50:44 CST 2015


On Mon, Dec 7, 2015 at 7:49 AM, thorsten at portableinnovations.de
<thorsten at portableinnovations.de> wrote:
> The throwing ones might use "strict", or something similar, i.e.
>
> init(strict value: Int64) throws

Well, choosing that word is very important :)  "strict" does not imply
"throwing" to me, FWIW, it is more like "lossless" than "throwing".

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