←back to thread

312 points chmaynard | 1 comments | | HN request time: 0.213s | source
Show context
sbinnee ◴[] No.45062385[source]
I am surprised that the walrus operator had to do with Guido's resignation. The walrus operator is awesome. There are so many cases you need a temporary variable in a control flow. The walrus is a beautiful way to handle it.
replies(4): >>45065832 #>>45065905 #>>45068295 #>>45072135 #
1. tretiy3 ◴[] No.45072135[source]
i did not get it until learning rust. and only then u realized that: if let Some(msg) = read_message(&mut stream) { is the same as if msg := read_message(stream):