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

Yeah, I said as much (even calling them duals) in a sibling comment.

https://news.ycombinator.com/item?id=8375910

Method calls don't need to be fixed either. Just because C++ stores virtual methods in a fixed-sized table doesn't mean Lua/Javascript/etc can't store them in hash tables. And a list of hooks is sort of like an extensible switch statement, but bare switch statements like you were describing obviously don't have that kind of runtime flexibility.



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

Search: