boltlang / Bolt

A programming language for rapid application development
34 stars 1 forks source link

Add support for anonymous functions #66

Open samvv opened 3 weeks ago

samvv commented 3 weeks ago

Right now, Bolt does not support anonymous function, i.e. lambda expressions. It is very cumbersome to have to write a named function for each small procedure, so evidently this feature should be implemented.

samvv commented 3 weeks ago

We are going to implement the following Haskell-like syntax:

let modify_state = ...

modify_state \x -> x + 1