btwael/mammouth

Global keyword

Closed this issue · 2 comments

Great work. I love mammouth!
But there's one issue. it does not support global keyword. For example

abc = 1 
func myfunc ->
    global abc <--------------
    echo abc

also please make possible use keyword on closures

myvar = 1
func (args)(myvar) -> # This is anonymous function (closure)
    echo myvar

Working on this, thank you for reporting 👍