On 10/28/11 4:39 PM, Sebastian Sylvan wrote:
How about "union"? C/C++ programmers will instantly get the gist of
it, while probably suspecting that it'll be a safer version of the
union construct they're familiar with.
There was a concern that C/C++ programmers would mistake it for the
unsafe
On Fri, Oct 28, 2011 at 3:25 PM, David Rajchenbach-Teller
wrote:
> If you want something shorter than "variant", here are a few, well,
> variants:
> - "sum"
> - "cases"
> - "choice"
> - "tags" (it's a plural)
> - "tagged"
> - "enum" (Java-style, not C++ style)
> - "family"
> - "alt"
> - "either"
>
On Oct 28, 2011, at 3:25 PM, David Rajchenbach-Teller wrote:
> As a newbie, I confirm that both "tag" and "log_err" are quite
> confusing.
>
> I confirm that "print" will be much better.
+1
> If you want something shorter than "variant", here are a few, well,
> variants:
> - "sum"
> - "cases
As a newbie, I confirm that both "tag" and "log_err" are quite
confusing.
I confirm that "print" will be much better.
If you want something shorter than "variant", here are a few, well,
variants:
- "sum"
- "cases"
- "choice"
- "tags" (it's a plural)
- "tagged"
- "enum" (Java-style, not C++ styl
It might be relevant that (for the same "hello world should be simple"
reason) recently added `std::io::print` and `std::io::println` to the
stdlib.
___
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev
A little bikeshedding:
Tags
In my experience "tag" has been confusing for newcomers to the language.
It's consistent in that it's the only way to define a nominal type, but
nominal types are more of a compiler writer's construct than a construct
users of the language are used to thinking