You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm sure that sweet.js can help this codebase. You can make it a compile time only dependency.
String concatentation to build up functions is very awkward.
With sweet.js you can have regular javascript looking code, and then macros which perform the string concatenation for you at runtime if you are worried about code size. You just shouldn't be dealing with all of these strings, it's incredibly error prone. I'm taking a shot at the conversion.
The text was updated successfully, but these errors were encountered:
I think as much as possible you want to avoid string concatenation. If you have to do it, write the string concatted functions in a systematic way. With a proper macro system (that also allows runtime code generation), you could use jslint to avoid more errors too.
How do you write code for ndarray.js? Are you thinking about what you want the expanded code to look like? Do you write the expanded code first and then write the generating code?
I really like the idea of ndarray.js There is some great work here.
I'm sure that sweet.js can help this codebase. You can make it a compile time only dependency.
String concatentation to build up functions is very awkward.
With sweet.js you can have regular javascript looking code, and then macros which perform the string concatenation for you at runtime if you are worried about code size. You just shouldn't be dealing with all of these strings, it's incredibly error prone. I'm taking a shot at the conversion.
The text was updated successfully, but these errors were encountered: