I would like to embed english-like assertion statements, annotations, and sanity-checking, etc., in line comments, separating them as a new form of code
/*
Module: Getter
Params: a, b, c, ...
_
assert( typeof(Getter) == 'Function', (this)={ console.error'Error: Datatype is not of built-in type: Function'; return 0 } )
assert( a>0 && typeof(a) != 'object', ()=>{ console.warning'Warning: Invalid input; return 1 } )
_
*/
function Getter(a,b,c,...){
}
I think this would improve a statement's documentability, portability, readability, reliability, sustainability, and maintainability.
cf. pragmas in code for compiler performance, JS documentation generators