Permit foreach over an option type.
Option!T value = null; foreach(someValue; value) { // We never enter this loop body. } value = new T(); foreach(someValue; value) { // We enter this loop body exactly once. }
See Implementation
Permit foreach over an option type.