News for hackers. Stuff that matters.
Re:Why Hy? by baq on Tuesday May 03, 2022 @03:56PM (#31252801)
it kinda sorta works when wrapped in a function

  def f():
      a = 1
      def g():
          nonlocal a
          a = 2
      g()
      print(a)
though nonlocal can't be used when referring to global variables... it's kinda bad.
Re:Why Hy? by gilch on Tuesday May 03, 2022 @04:20PM (#31253074)
You can still use `global` though.