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

> hasOwn

Okay, I guess I should have elaborated. I'm talking about the situation where you'd use "in" because you want properties on the prototype to count. HasOwn would not work there. There is no way to default via prototype to "yes it exists" but override that with "no it does not exist".

> The goal is not to find a universally infinite looped superidea, but to have one that is practical and no less.

I find nil plenty practical when I use Lua. Even when working in Javascript, I have never felt the need to override a prototype value with null or undefined.



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

Search: