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

scoped includes are a deal breaker for me when looking at new programming languages.

ex: non-scoped (everything in foo is added to the global scope)

  inport foo
  {
    bar.do()
  }
ex: scoped (everything in foo is added to the local scope, and assigned a name-space)

  {
    bar = inport foo
    bar.do()
  }
  
I find it much easier to manage programs where there are no "hidden" global variables. It's especially hard when the included files also can include files, witch all adds to the global scope.


bring it up on the mailing list, seems like an interesting feature to me :)




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

Search: