Skip to content

Infix macros

Compare
Choose a tag to compare
@disnet disnet released this 10 Jan 04:43
· 1401 commits to master since this release

Infix macros!

macro => {
  rule infix { ($params ...) | { $body ... } } => {
    function ($params ...) { $body ... }
  }
}
var f = (x, y) => { return x + y }