Is it possible to write looping system with syntax like while or for or foreach?

  • Thread starter Thread starter BataBo Jokviu
  • Start date Start date
B

BataBo Jokviu

Guest
Recently I've written my own looping system and currently it being called looks like this:

MyLoopingSystem(ThreadCount,SomeList,loopVar => {/*commands go here*/});

and it works fine but doesnt really look nice and I was wondering is it possible to make it look more like for,while or foreach, all arguments go into the bracket and than the method that it is suppose to be executed goes into curly brackets afterwards.

Continue reading...
 
Back
Top