[rust-dev] Heads up: syntax change with nullary tags in patterns

Niko Matsakis niko at alum.mit.edu
Wed Jan 25 12:40:38 PST 2012

On 1/25/12 12:39 PM, Florian Weimer wrote:
> The "." was ugly, but doesn't this make the syntatic category of the
> token dependent on the contents of imported modules?  I think this is
> problematic for IDEs which want to go a bit beyond lexical syntax
> highlighting.

Yes, this was the counter argument.

> We can remove the c variant from the enum_type definition, and the
> program still compiles (even though this smells like a bug).  It keeps
> compiling if we add a d variant to enum_type.  Flagging unused bound
> variables as error isn't a reliable countermeasure because the
> variant-now-variable might actually be used.

This is because exhaustiveness checking is not implemented.


More information about the Rust-dev mailing list