Not to allow users to define their own functions, but to avoid constant re-typing of redundant expressions...
Possibly syntax like [!](expression) to define the lambda, and a simple ! in an expression to insert that lambda? If that's the case could do N exclamation marks to differentiate lambdas.
Note that lambdas will just be syntax sugar. will need to make sure they aren't used in a scope they're not defined in.
Not to allow users to define their own functions, but to avoid constant re-typing of redundant expressions... Possibly syntax like
[!](expression)
to define the lambda, and a simple!
in an expression to insert that lambda? If that's the case could do N exclamation marks to differentiate lambdas.Note that lambdas will just be syntax sugar. will need to make sure they aren't used in a scope they're not defined in.