News for hackers. Stuff that matters.
Re:First taste of Rust by PudgePacket on Friday August 01, 2014 @01:21AM (#8118475)
I played around with a few different configurations for that particular part, even having something similar to yours that looked like

  match line.chars().next() {
      Some(x) => match x {
  	  '#' => ...
  	  'v' => ...
  	  _   => ...
      },
      None    => ...
  }
But I felt that the current approach was fine. At this point it becomes more a decision of style and taste vs any kind of practicality.

There are no comments on this comment yet.