Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

To make the line numbers in JS error messages more informative, you could make the line numbers coincide.

i.e. by minifying the JS where coffee:js lines are 1:m and adding blanks when m:1, instead of always pretty-printing.

It's a trade-off of js-readability for error-readability - a hard call, but very cool to be able to go directly to the line in question.



Ah yes, we have a ticket for this.

http://github.com/jashkenas/coffee-script/issues/issue/132

Now that there's the self-compiler that can be run without ever saving the compiled JavaScript as a file, this becomes far more important.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: