Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
btipling
on Nov 5, 2012
|
parent
|
context
|
favorite
| on:
Writing Fast, Memory-Efficient JavaScript
Why an expression and not simply `function logArrayElements`? If you do the latter you'll see more information if you wanted to introspect (toString on the function, or in an error traceback).
cmwelsh
on Nov 5, 2012
[–]
I adapted this from some game engine code. I have updated my example to show why I wasn't using a `function` statement. Thanks.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: