> Are we ready to land these?
I think this patch series is ready to go as long as long as you don't
notice anything else. I'm pretty sure something will show up no matter
what, though. (Gotten somewhat resigned to that)
I'll go ahead and get the next issue (move main state machine code into
separate function from try-catch) merged with the latest from here.
> Peter started this work... I'm looking forward to progress in that
area.
Compilers has always sort of been an area of interest, but it's never
been my strong point. Not 100% sure which area you're referring to, but
if you mean making the compiler use the JSDoc for type-checking, then
I wouldn't know where to start. It'd theoretically be trivial to turn
the JSDoc into runtime checks, though.
/**
* @param {number} a
* @param {number} b
* @return {string}
*/
function addAndReturnString(a, b) {
return String(a + b);
}
// generated code
function addAndReturnString(a, b) {
assert(typeof a === 'number');
assert(typeof b === 'number');
$ret = String(a + b);
assert(typeof $ret === 'string');
return $ret;
}
https://codereview.appspot.com/7487046/