Syntax sugar for async functions #58

Open
opened 2025-07-02 16:26:01 +00:00 by scott · 0 comments
Owner

Consider a common pattern:

fn foo () -> receive {
  (:verb, arg) -> {...}
  ...
}

This can perhaps be sugared to

async fn foo {
  (:verb, arg) -> {...}
  ...
}

No need to mark callsites with await or anything. And perhaps this is foolish. Much sugar is.

Consider a common pattern: ``` fn foo () -> receive { (:verb, arg) -> {...} ... } ``` This can perhaps be sugared to ``` async fn foo { (:verb, arg) -> {...} ... } ``` No need to mark callsites with `await` or anything. And perhaps this is foolish. Much sugar is.
scott added the
feature
label 2025-07-02 16:26:12 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
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: twc/ludus#58
No description provided.