News for hackers. Stuff that matters.
Re:Writing a DSL with Python by GeneralMaximus on Sunday September 06, 2009 @10:41PM (#808486)
In Python, you can easily define methods within methods, so there is little semantic clutter at the toplevel.

  def doSomething():
    def doSomethingElse():
      # Code goes here.
      pass
    
    eggs = filter(doSomethingElse, spam)
    for cheese in eggs:
      # Do something.
      pass

There are no comments on this comment yet.