4 ms·
Definitely play with the exception handling. Latent bugs aside, asynchronous statements (wait fors) work in any crazy horrible nested combination of ifs, fors (
by rzimmerman 13y ago
Definitely play with the exception handling. Latent bugs aside, asynchronous statements (wait fors) work in any crazy horrible nested combination of ifs, fors (parallel or series), and trys that you can think of. Take a look at the JS output with:
kal -o output.js -f beautify input.kal
to see the sausages being made. The http server demo is a good example (https://github.com/rzimmerman/kal/blob/master/examples/async-http-server.kal https://github.com/rzimmerman/kal/blob/master/examples/async...)
- tlb 13y agoA side-by-side line-by-line interactive display would be wonderful in writing Kal. Reading the JS explains what it's doing quite well, except that the Kal compiler uses way too many compound comma-separated statements instead of semicolons.
- rzimmerman 13y agoThat's actually a side effect of uglify.js's beautify, I believe. I'm going to try to get rid of that in upcoming releases.