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

I don't understand why naming a function is such a problem? You can even do it in the local scope and prefix it _ if you want to.


Would you find it problematic to write if and for statements like this?

  def _forbody(x):
    def _ifbody(x):
      print x
    if x % 2: _ifbody(x)
  for x in xrange(10): _forbody(x)


But those are one-liners like you can already do in Python.




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

Search: