Called keywords should work in do forms #87

Closed
opened 2024-06-18 22:46:50 +00:00 by scott · 2 comments
Owner

Case:

let foo = #{:a 1}
do foo > :a

Expected: 1

Actual:

Internal Ludus error: unknown method :a invoked on :body
Please file an issue at https://alea.ludus.dev/twc/ludus/issues
Case: ``` let foo = #{:a 1} do foo > :a ``` Expected: 1 Actual: ``` Internal Ludus error: unknown method :a invoked on :body Please file an issue at https://alea.ludus.dev/twc/ludus/issues ```
Author
Owner

The issue is that the interpreter uses call-fn and should actually use apply-synth-term in passing the previous result to the next term in a do form. In other words, do should be sugar for a general synthetic expression, not specifically for function calls.

The issue is that the interpreter uses `call-fn` and should actually use `apply-synth-term` in passing the previous result to the next term in a `do` form. In other words, `do` should be sugar for a general synthetic expression, not specifically for function calls.
scott added the
bug
label 2024-07-03 00:18:00 +00:00
Author
Owner

Fixed in 9ddb43a30f

Fixed in https://alea.ludus.dev/twc/ludus/commit/9ddb43a30f817d27d9ade1517728c759c43f8541
scott closed this issue 2024-07-14 18:29:20 +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#87
No description provided.