On 12-03-23 04:37 PM, Patrick Walton wrote: > I like all of this. Hooray!
> LLVM uses "x"; [int x 10], [int x 30]. I think it's kind of cute. > There's precedent for "x" as an operator, in Perl, and I don't believe > it requires making "x" a keyword. It does require whitespace around the > "x", though. Thought about it -- and here we're just quibbling over syntax -- but I couldn't find a way to make it look any good when working through the notation, when it comes to: - str type, which has no brackets but might have fixed size - literals, where you are faced with expr ambiguity - the other sigils ~ and @ for storage location - differentiating the slice type from the fixed-inferred-size type A syntax choice ought to be reasonably uniform, unambiguous and decent-looking in as many of these cases as possible. Open a buffer up and see what you can get that covers all of 'em. Happy to look at other candidates :) -Graydon _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
