Changes between Initial Version and Version 1 of Ticket #15081, comment 18


Ignore:
Timestamp:
Apr 6, 2012, 4:21:28 PM (7 years ago)
Author:
Adam Peller
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #15081, comment 18

    initial v1  
    1 the dojo way is usually not to check the arguments, but to just let it throw (and be sure that it does) to save the extra bytes of code.  There's certainly a good argument to be made for explicitly checking and throwing comprehensible error messages.  I suppose such style would be up to the module owner.
     1the dojo way is usually not to check the arguments, but to just let it fail (and be sure that it does) to save the extra bytes of code.  There's certainly a good argument to be made for explicitly checking and throwing comprehensible error messages.  I suppose such style would be up to the module owner.