Naming Pin/Anchor/Move

I can see the advantages of that. It shouldn’t come at the expense of the names making sense, though. When one word is an adjective, you can play with the order and still get the message across. A “pin mutable” has to be interpreted as a mutable pin, because it’s clear which is the adjective. However, if you’re using a noun adjunct, like “chicken” in “chicken soup”, the order of the nouns is what determines which is the adjunct, so there’s no flexibility there. For this reason, I think you can justify having PinMut but also BoxPin. This also justifies the difference between RefCell and RefMut, since Ref(eference) is a noun and Mut(able) is an adjective. Edit: I still think something more explicit like OwningPin or PinningBox might be better, though. Maybe even PinOwn, but that still has the weird grammatical form.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.