News for hackers. Stuff that matters.
Re:A simple UI framework for Rust by jffry on Tuesday May 19, 2015 @08:22AM (#9569495)
In rust that will return itself, which allows you to chain method calls, if that's your style. For example, with the Timer class [1], you could write:

  someTimer.set_interval(1000).start();
instead of writing:

  someTimer.set_interval(1000);
  someTimer.start();

[1]: https://github.com/cybergeek94/kiss-ui/blob/master/src/timer...

There are no comments on this comment yet.