Skip to content

Optional matching #42

Open
Open
@Qiyamah

Description

@Qiyamah

Hi,

@metafunction fte(function f(*{args}):::?{rt} *{stmts} end) begin
  println(f)
  println(args)
  println(rt)
  println(stmts)
end

is supposed to match something like :
:(function f(x,y) x+y end) or
:(function f(x,y)::Int x+y end)
but it is unable to match against
:(function f(x,y) x+y end)

? means reluctant match right? Doesn't this means it may match nothing?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions