@evanphx hm. * is used in the unsafe dialect to mean raw pointer (basically syntactic FFI API). Evolution is interesting.
@evanphx I'm Rust, Path is actually not Copy because it has a heap allocated string in it. Aliasing is disallowed so things are a bit diff.
-
-
@wycats Because a copy would mean copying the heap allocated string? -
@evanphx it would mean copying the pointer to the heap allocated string, which would be an alias. Rust has clone too, but not automatic. -
@wycats Sure. That makes sense. This is a place where you start to talk about RC pointers generally :) -
@evanphx right. Like I said in the post, I find myself trying to stick within the ownership model because it maps onto reality and is clear -
@wycats Sure, I agree. Humans are good at understanding and transferring ownership, but not great on shared ownership. -
@evanphx c. The inspired choice of rust was parleying an intuition about ownership into an intuition about borrowing. Maps onto real world -
@wycats Totally agree. I'm super happy to see the lifetime rules get simplified too. -
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.