Add support for anonymous functions #66

Open
opened 2024-07-09 20:26:27 +02:00 by samvv · 1 comment
samvv commented 2024-07-09 20:26:27 +02:00 (Migrated from github.com)

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.

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 2024-07-09 20:27:17 +02:00 (Migrated from github.com)

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

let modify_state = ...

modify_state \x -> x + 1
We are going to implement the following Haskell-like syntax: ``` let modify_state = ... modify_state \x -> x + 1 ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: samvv/bolt#66
No description provided.