holgerbrandl04/17/2018, 7:41 AM
equivalent, why is it assignable in kotlin but not in java?
Ruckus04/17/2018, 6:05 PM
equivalent. The problem is
in Java is playing two roles and doesn't distinguish between them. Java can't distinguish between a function that returns, but doesn't return a useful value (
in Rust, etc.) and a function that doesn't return at all (usually called a diverging function) (
in Rust, etc.)
is the equivalent of Java's overly vague