“as” is for types :) Let’s say initialize(to:) is good and once we’ve bikeshedded all the other names we’ll see if there’s any potential for confusion…
Andy > On Jul 5, 2016, at 9:20 AM, Dave Abrahams <[email protected]> wrote: > > The use "as"? > > Sent from my moss-covered three-handled family gradunza > > On Jul 5, 2016, at 6:48 AM, Andrew Trick <[email protected] > <mailto:[email protected]>> wrote: > >> >>> On Jul 4, 2016, at 6:19 PM, Dave Abrahams via swift-evolution >>> <[email protected] <mailto:[email protected]>> wrote: >>> >>>> So Swift 3 users have already migrated to this “better” name. >>>> >>>> I agree that initialize(to:) is consistent with the language we use >>>> for assigning values. But grammatically, I think initialize(with:) >>>> also makes perfect sense and is just as common. >>> >>> “With” is a weak preposition with many possible interpretations, so we'd >>> like to avoid it. If I used “with” where “to” would have worked, I >>> regret it. >> >> That looks like a +1 from DaveA. >> >> So, my only objection is that I’m trying to establish a convention where >> “from:” reads from memory at a pointer and “to:” writes to memory at a >> pointer. Here “to” is backward because the object of the preposition is not >> being modified. >> >> -Andy
_______________________________________________ swift-evolution mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-evolution
