Next: , Previous: , Up: Miscellaneous  


Q5.1.4: What is the performance hit of let?

In most cases, not noticeable. Besides, there’s no avoiding let—you have to bind your local variables, after all. Some pose a question whether to nest lets, or use one let per function. I think because of clarity and maintenance (and possible future implementation), let-s should be used (nested) in a way to provide the clearest code.