Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> A switch statement in what language?

Javascript.

> I presume by "object lookup" you mean the "bar" in "foo.bar" in javascript.

Yes, but more specifically what I tested was the foo[bar] form, where bar contains a string, versus switch(bar).

> With all respect, I think you are worrying too much :)

For a language that is supposed to be nearly ready for writing rich interactive applications including pixel-by-pixel manipulation, two orders of magnitude (and widely variable across browsers) is a huge deal. I'm guessing you haven't tried to do much canvas programming?



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: