Void, Strict, and Non-Strict
Monkey Forums/Monkey Programming/Void, Strict, and Non-Strict| 
 | ||
| Hello, Similar to how one can declare (return) types in non-strict mode with $, %, or ?, for example, is there similar shorthand for Void? For background, I want to do this in non-strict mode: Function DoSomething()...and have it mean this in strict mode: Function DoSomething:Void() I recognize it's actually more like these, which is not intuitive to me. Function DoSomething%() Function DoSomething:Int() I would expect Function DoSomething() to return Void in non-strict mode. Thank you! | 
| 
 | ||
| If you do not set a return value type it is considered Int, not Void. That's by language design. | 
| 
 | ||
| Personally I ALWAYS use strict mode. Says me a lot of headache for missdefined fields and variables. | 
| 
 | ||
| I would also recommend always working in strict mode it will save you so much time in the long run as well as making your life a lot easier when it comes to debugging. | 
| 
 | ||
| I guess my question was whether there was similar shorthand for Void. | 
| 
 | ||
| Not to my knowledge. |