Hello, rust-dev!

I have only recently discovered rust and haven't written anything
substantial in the language yet. I come from a background of python, so it
may seem natural that I lean towards a python syntax. Still, I have rarely
found myself using anything more complex than '{}', '{1}', or '{variable}'
in real life.

That said, my point is this: the would could one less formating syntax
instead of one more.

-Artem


On Fri, Aug 9, 2013 at 9:41 PM, Benjamin Striegel <[email protected]>wrote:

> This looks really great. In general I like the look of the braces. For the
> details of the syntax, I think we should borrow as much as possible from
> other languages; no need to be very novel in this space. I also don't think
> we should worry too much about cases like "{: <+#10.10d}" as long as the
> majority of uses are pleasant and readable.
>
> There is one important thing I want to point out. The shortest specifier
> of "{}" is likely to get quite a lot of use, and having it use reflection
> (analogous to "%?" today) can't be allowed in safe code, as per
> https://github.com/mozilla/rust/issues/7606 . I'd prefer it if "{}"
> attempted to call .to_str() on its argument.
>
> _______________________________________________
> Rust-dev mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/rust-dev
>
>
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to