I've been watching rust with interest since 0.1, but finally installed the
compiler yesterday and started looking through the standard libraries.
I noted that Option has a procedure for it, called chain, which is
a specialised version of monadic bind. Being a Haskeller, my immidiate
thought
Howdy,
I've been tinkering with Rust generics lately and, unfortunately, they seem
very limiting. Coming from C++, I expect from generics what templates provide:
A plug-in-this-type-in-and-see-if-it-compiles (
http://en.wikipedia.org/wiki/Substitution_failure_is_not_an_error ) approach.
It
What's so confusing about this? I agree that parameter modes had too many
options to think about, but this should be mostly transparent to the
user.Perhaps to the programmer semantics should stay the same as if
parameter was truly passed by value (i.e. no de-referencing needed). The
Any time. Moving to new languages is hard, especially when you've been
doing one for a long time.
___
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev
On 4/4/13 2:45 PM, Jeaye Wilkerson wrote:
Howdy,
I've been tinkering with Rust generics lately and, unfortunately, they
seem very limiting. Coming from C++, I expect from generics what
templates provide: A plug-in-this-type-in-and-see-if-it-compiles (
On 4/4/13 3:05 PM, Vadim wrote:
What's so confusing about this? I agree that parameter modes had too
many options to think about, but this should be mostly transparent to
the user.Perhaps to the programmer semantics should stay the same as
if parameter was truly passed by value (i.e. no
Ahh, I guess I missed that rvalues of moved types are also moved when
used as parameters. Yes, that throws a wrench into my reasoning.
But this sucks! 95% of the time I don't want a function to take ownership
of it's arguments. I understand that this was done for consistency with
local
On 04/04/2013 08:23 PM, Thad Guidry wrote:
Good points, Patrick. Added Generics to wiki page for Cxx programmers
(probably could use more info there also)
https://github.com/mozilla/rust/wiki/Rust-for-CXX-programmers
Thanks for adding that! I'm sure it'll help the next me that runs into