News for hackers. Stuff that matters.
Re:Comparing Rust and Java by dbaupp on Monday February 29, 2016 @12:11AM (#11193697)
I suspect the author was talking about defining methods for individual variants of an enum, something like

  enum Foo { A, B }
  impl Foo::A { fn method_on_a(&self) {} }
Re:Comparing Rust and Java by da4c30ff on Monday February 29, 2016 @03:59AM (#11194344)
There is an RFC[1] for making enum variants first-class types.

[1]: https://github.com/rust-lang/rfcs/pull/1450

Re:Comparing Rust and Java by llogiq on Monday February 29, 2016 @04:49AM (#11194502)
Exactly. I must admit that my wording was not as understandable as it should have been. I'll see if I can rephrase it to better convey the point.