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

Yup agreed but the prototype approach is scarier as it affects every user of the prototype, where as with namespaces you opt-in to bringing in extension methods at the file level by importing the associated namespace.

Not sure on the whole this as argument, I prefer it to the current approach of this being decided at framework/library level because I get bored of having to bind each function to get lexical scoping back. That Nim code is indeed beautiful though, maybe need to give ti a look ta.



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

Search: