Wiki

Changes between Version 4 and Version 5 of NilableTypes

Show
Ignore:
Timestamp:
12/13/18 01:36:16 (5 years ago)
Author:
hopscc
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NilableTypes

    v4 v5  
    22 
    33Cobra does 'nil tracking' which forces specification of variables that may be allowed to contain '''nil'''.[[BR]] 
    4 This is done to 
    5  * Help eliminate runtime exceptions about nil reference errors  
    6  * Allow reporting of multiple nil referencing errors at compile time (instead of a single failure point at runtime) 
    7  * Help document which parameters permit nil and which do not 
     4This is done to : 
     5 * Help eliminate runtime exceptions about nil reference errors, 
     6 * Allow reporting of multiple nil referencing errors at compile time (instead of a single failure point at runtime), 
     7 * Help document which parameters permit nil and which do not. 
    88 
    99'''nil tracking''' is done by typing the variable as a nilable Type which is by typing to any typeName with a '''?''' suffix