grimalschi / calque

Reactive calculator
https://calque.io
MIT License
466 stars 90 forks source link

Comments #1

Closed MerliX closed 9 years ago

MerliX commented 9 years ago

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

josdejong commented 9 years ago

You can use the # character to start a comment

MerliX commented 9 years ago

@josdejong I see error

screenshot 2015-08-06 01 36 11
josdejong commented 9 years ago

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
grimalschi commented 9 years ago

Fixed