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?

Reply via email to