`borrow` and `take` parameter ownership modifiers

I'm sure that the proposers have considered this point, but just in case they haven't: the name “take” to denote argument consumption is an invitation to confusion, since we normally say of (_: Int)->String that it “takes an Int and returns a String.” In the Val project we spent a long time looking for a good way to describe consumption. Sean Parent's suggestion of sink seems to work really well for us. Just sayin'.

8 Likes