Re: [rust-dev] rusti - the - repl renovation

2013-09-23 Thread Jason E. Aten
Since I work in R alot, I value a repl session with state very highly. Bad scenario: suppose I'm working at rusti, and then I make one mistake in syntax, or do an index into a vector that is out-of-bounds and thus cause an assert!() to fire and my current task to fail. If I'm working at a repl

[rust-dev] If and pattern match

2013-09-23 Thread Oren Ben-Kiki
A question / proposed syntax... How about allowing writing something like: if (Some(foo), Some(bar)) ~~ (get_option(foo), get_option(bar)) { use(foo, bar); } Instead of having to write the more combersome: match (get_option(foo), get_option(bar)) { (Some(foo),

Re: [rust-dev] If and pattern match

2013-09-23 Thread Jason Fager
Doesn't seem like enough bang for the buck to me. In your first example you save 3 vertical lines but get a really wide one in return, and lose some indentation levels but add more syntax and conceptual overhead to the language. Might be my lack of imagination, but the feature doesn't seem to

Re: [rust-dev] rusti - the - repl renovation

2013-09-23 Thread Thad Guidry
Did you have a use case or situation in mind where you thought CUR should timeout? Jason No situation, I also think CUR should wait forever for the same reasons. Just curious, thanks for explaining ctrl-c regarding SIGINT, makes sense. -- -Thad Thad on Freebase.com

Re: [rust-dev] rusti - the - repl renovation

2013-09-23 Thread Jason E. Aten
On Mon, Sep 23, 2013 at 7:53 AM, Thad Guidry thadgui...@gmail.com wrote: Hi Jason, Nice work. Curious, this differs in POSIX, I know, but... How long should CUR wait, what if TRY never finishes and wait cannot retrieve the exit status to determine normal or abnormal (because of various

Re: [rust-dev] rusti - the - repl renovation

2013-09-23 Thread Jason E. Aten
On Mon, Sep 23, 2013 at 11:20 AM, Brian Anderson bander...@mozilla.comwrote: As to the issue of arbitrary global memory modifying code, only unsafe Rust code will do that, and it's understood that when running unsafe code there is no safety net. Thanks for your thoughtful comments, Brian.

[rust-dev] This Week in Rust

2013-09-23 Thread Corey Richardson
Content copied from http://cmr.github.io/blog/2013/09/23/this-week-in-rust/ -- Welcome to another issue of *This Week in Rust*. We're gearing up for a 0.8 release, tentatively planned for Thursday. Additionally, a huge welcome of Alex Crichton to the Rust team! He's been doing some great work,

Re: [rust-dev] RFC: Syntax for raw string literals

2013-09-23 Thread Steven Ashley
I also forgot to mention the possibility of putting a filename as the eos string. I think its kind of neat. r##index.html## html ... /html ##index.html## ___ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev

Re: [rust-dev] Windows Users can build Rust properly again !

2013-09-23 Thread Thad Guidry
So, in my experiments tonight... I had to have the following copied into stage0/bin in order to build with mingw32 (gcc 4.8.1) Older libstdc++-6.dll which I got from here: