Added typing and preprocessing to TODO
parent
e822bc8840
commit
185b1485b3
18
TODO
18
TODO
|
@ -4,6 +4,14 @@
|
||||||
|
|
||||||
Misc
|
Misc
|
||||||
- Deep cloning level for util.clone()
|
- Deep cloning level for util.clone()
|
||||||
|
- Optional preprocessing support
|
||||||
|
- Ability to disable features that wouldn't impact base functionality
|
||||||
|
- For example, one may wish to have type checking enabled for development
|
||||||
|
but may not want the performance hit for their production code.
|
||||||
|
Disabling type checking, as long as the proper types are passed to the
|
||||||
|
functions, will not impact function logic.
|
||||||
|
- Should be able to run source file without preprocessing, so C-style macros
|
||||||
|
cannot be used (# is not a valid token)
|
||||||
|
|
||||||
Property Keywords
|
Property Keywords
|
||||||
- Restrictions; throw exceptions when unknown keywords are used
|
- Restrictions; throw exceptions when unknown keywords are used
|
||||||
|
@ -16,6 +24,16 @@ Property Keywords
|
||||||
- static; method/property accessible via class definition
|
- static; method/property accessible via class definition
|
||||||
- event; designates a supported event
|
- event; designates a supported event
|
||||||
|
|
||||||
|
Typing
|
||||||
|
- Support JSDoc-style type definitions for parameters
|
||||||
|
- Syntax:
|
||||||
|
[ 'string', 'number', function( name, age ) {} ]
|
||||||
|
- Optional; if a function is simply provided, rather than an array, no type
|
||||||
|
checking will be performed
|
||||||
|
- For abstract methods, simply leave the function off (last index)
|
||||||
|
- Provide option to throw errors on any type mismatch
|
||||||
|
- Auto-cast, unless casting is impossible, then throw error
|
||||||
|
|
||||||
Documentation
|
Documentation
|
||||||
- Ensure all docblocks contain only valid JSDoc tags
|
- Ensure all docblocks contain only valid JSDoc tags
|
||||||
- Generate documentation
|
- Generate documentation
|
||||||
|
|
Loading…
Reference in New Issue