We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
None
To make an equivalent comparison between Scala and Rust, this line on slide 9: var y: Option[Int] = _
var y: Option[Int] = _
Should read: var y: Option[Int] = None
var y: Option[Int] = None
Like it does in Rust. And it will not blow up.
The text was updated successfully, but these errors were encountered:
No, they aren't equivalent, that's the point. Options in scala can still be null.
On Oct 2, 2016 8:55 PM, "Scott" [email protected] wrote:
To make an equivalent comparison between Scala and Rust, this line on slide 9: var y: Option[Int] = _ Should read: var y: Option[Int] = None Like it does in Rust. And it will not blow up. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub #1, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGAB8i1sN_RhzBHrOopCSFZOF0j5e6pks5qwGCigaJpZM4KML07 .
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub #1, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGAB8i1sN_RhzBHrOopCSFZOF0j5e6pks5qwGCigaJpZM4KML07 .
Sorry, something went wrong.
Ah so in Rust I can't set an option to equal ptr::null()?
ptr::null()
It seemed like that was the Rust equivalent to foolishly assigning null instead of None to an Option in Scala.
null
Option
No branches or pull requests
To make an equivalent comparison between Scala and Rust, this line on slide 9:
var y: Option[Int] = _
Should read:
var y: Option[Int] = None
Like it does in Rust. And it will not blow up.
The text was updated successfully, but these errors were encountered: