News for hackers. Stuff that matters.
Re:Option and null in dynamic languages by chcokr on Monday December 08, 2014 @10:04PM (#8720747)
I sense a connection, for example, between Rust's `fn foo<T>() -> Result<T, E>` and Java's `void foo<T, E>() throws E` (this might be incorrect Java syntax). I'm not entirely confident though.
Re:Option and null in dynamic languages by barosl on Monday December 08, 2014 @10:11PM (#8720775)
I find Java's checked exception similar to Option type, because they are all part of the function's type. You cannot pass alone without checking the possible failure case.