Re: [rust-dev] Syntax of vectors, slices, etc

2012-04-24 Thread Graydon Hoare
On 12-04-24 11:30 AM, Matthieu Monrocq wrote: > However this is at the condition of considering strings as list of > codepoints, and not list of bytes. List of bytes are useful in encoding > and decoding operations, but to manipulate Arabic or Korean, they fall > short: having users manipulate the

Re: [rust-dev] Syntax of vectors, slices, etc

2012-04-24 Thread Joe Groff
On Tue, Apr 24, 2012 at 11:30 AM, Matthieu Monrocq wrote: > However this is at the condition of considering strings as list of > codepoints, and not list of bytes. List of bytes are useful in encoding and > decoding operations, but to manipulate Arabic or Korean, they fall short: > having users ma

Re: [rust-dev] Syntax of vectors, slices, etc

2012-04-24 Thread Matthieu Monrocq
Hello, As this is going to be my first e-mail on this list, please do not hesitate to correct me if I speak out of turn. Also do note that I am not a native English speaker, I still promise to do my best and I will gladly welcome any correction. First, I agree that operations on vectors and

Re: [rust-dev] tool interfaces

2012-04-24 Thread Brian Anderson
On 04/24/2012 10:40 AM, Graydon Hoare wrote: Hi, There's been some casual conversation on IRC and around mozilla lately about the longer-term evolution of tool interfaces (command-line and crate/library interfaces) for rust. I thought I'd poll the mailing list a bit and see if anyone has strong

Re: [rust-dev] tool interfaces

2012-04-24 Thread Graydon Hoare
On 4/24/2012 10:59 AM, Benjamin Striegel wrote: Here's a summary of Go's subcommands, which could be useful for a starting point: ... Not intending to throw more fuel on the Rust vs. Go fire, but they do have a lot of good ideas! :) Thanks! Handy to see but I'm not sure which principles fall

Re: [rust-dev] tool interfaces

2012-04-24 Thread Benjamin Striegel
Here's a summary of Go's subcommands, which could be useful for a starting point: build compile packages and dependencies clean remove object files doc run godoc on package sources env print Go environment information fix run go tool fix on packages fmt

[rust-dev] tool interfaces

2012-04-24 Thread Graydon Hoare
Hi, There's been some casual conversation on IRC and around mozilla lately about the longer-term evolution of tool interfaces (command-line and crate/library interfaces) for rust. I thought I'd poll the mailing list a bit and see if anyone has strong opinions. Here is what's been discussed:

Re: [rust-dev] 2 possible simplifications: reverse application, records as arguments

2012-04-24 Thread Niko Matsakis
Record patterns are fairly close to what you want. We don't use them consistently, but if we did, they would allow us to write things like: alt it.node { ast::item_impl({tps, _}) { ... } ast::item_enum({tps, _}) { ... } ... } It has an extra level of braces, tho