3 comments

  • orthoxerox 1 day ago
    I love it when people push syntax to its limits. The only thing I do not like is how `^` points in the wrong direction when you stack it vertically, like in the example:

        local _ = 5
          % arrow(function(x) return -x end)
          ^ arrow(function(x) return x + 10 end)
          ^ arrow(function(x) return x * x end)
          ^ arrow(print)  -- 25
  • wosined 1 day ago
    Just use Haskell. You can be among the first.
  • NuclearPM 1 day ago
    Lua really needs shorter function syntax for this type of thing to work.

    My hobby compile to Lua language uses [ x | x + 1 ] and [ ] for a no-arg function/block.