@evanphx what would the by-val sigil be? I think it's largely inherited from C++ tbh, but there may be composition reasons.
@evanphx makes sense. Harder to form the intuition in Ruby/JS/Java because "reference all the things" is a dictate.
-
-
@wycats Yeah, even for things you want to be a Value, like a Pathname. -
@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 - 4 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.