grimalschi/calque

Comments

Closed this issue · 4 comments

Interesting tool, but I didn't find sign to comment line.
When you do many calculations, comments will help you understand what's happening

You can use the # character to start a comment

@josdejong I see error
screenshot 2015-08-06 01 36 11

That's something calque should handle. The used expression parser (math.js) returns undefined in case of an empty expression, and undefined does not have a method toString(), hence the error message

math.eval('');               // returns undefined
math.eval('# some comment'); // returns undefined

Fixed