Skip to content

Add Lambda #449

@verh010m

Description

@verh010m

Is there a plan to add a feature like lambdas? It would be nice, as an example, to write something like this:

dim as sub(byref msg as string) msg = (byref m as string)
    MessageBox(msg)
endsub
msg "hello world"

Or like this:

dim as function() as uinteger foo = ()
    return 10
end function
dim as uinteger x= foo()

Don't take this seriously, it's just a simplified example of what it might look like

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions