adding static return?
Xavier Bigand
flamaros.xavier at gmail.com
Mon Mar 3 15:27:41 PST 2014
I thought it could be nice to have a static return.
My Idea is to remove unnecessary bracket encapsulation made with some
static if statements.
It will works like this :
module xxx.opengl;
import buildSettings; // contains some global constants
static if (renderMode == directX)
return;
...
So there will no more need to scope the module code and indent it.
Is it a good idea?
More information about the Digitalmars-d-learn
mailing list