Message from JavaScript discussions

January 2019

— Which context?

— 

Context is everything. the engine inside (safari, chrome, ff, node.js), the function contents, the function arguments, evironment/scopes around, variables used, etc etc

— Well, it CAN compile to a loop in all cases

— If the engine it happens to run on doesn't, that's not the programmers fault

— I need a solid performance, not relative

— All performance is relative though

— Every engine behaves differently

— You can't optimize for all engines

— When i dont care, i use .forEach, .map, etc. because they look better sometimes

— So optimize for code quality

— But in livescript, loops look fine, so i use loops if not writing plain .js file

— What do they look like?