Hacker News new | ask | show | jobs
by thomasahle 2012 days ago
> In C, the comma operator evaluates both operands and discards the first result.

Sounds like how the semicolon operator works in modern languages, like Rust.

1 comments

It does not, because this code does not compile:

  fn main() {
      println!("ok"; "Hello, world!");
  }