ceylon/ceylon-spec — Issue #170: More powerful null checks
Author: FroMage
Created: 2012-02-09 10:51:15+00:00
State: open
Labels: feature

I seem to always want to write things like:

```java
Foo? c = ...;
if(!exists c){
return;
}else{
c.foo();
}
```

Or worse:

```java
Foo? c = ...;
if(!exists c){
return;
}
c.foo();
```

I kind of expect this to work…

Similarly, I would like that the following works too:

```java
File? f = ...;
if(exists f && f.isDirectory){
f.process();
}
```