ZacharyWesterman / paisley

Plasma Automation / Instruction Scripting Language
GNU General Public License v3.0
0 stars 0 forks source link

Add support for lambdas #32

Closed ZacharyWesterman closed 11 months ago

ZacharyWesterman commented 12 months ago

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.

ZacharyWesterman commented 12 months ago

could also do lambda syntax like [!1](expr_a), [!2](expr_b)