Shorten RefCell's borrow() and borrow_mut()

#1

A small change to the names of these functions to improve ergonomics.

borrow() -> get() borrow_mut() -> get_mut()

0 Likes

#2

The intent of these names is to advertise they work like other borrows. In particular, it’s not obvious that you can’t execute another get_mut after you have already done a get_mut, and the type system won’t help you…

1 Like

closed #3

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

0 Likes