-
Notifications
You must be signed in to change notification settings - Fork 0
Supports: new #4
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
In the current syntax and implementation, JS objects are treated as constructor calls, so Date ‘2026/2/1’ is interpreted as new Date(‘2026/2/1’). In this case, function calls cannot be made on JS objects.
While we might not frequently want to execute this, to distinguish these calls, we might consider introducing a new function.
{{
set d1 (new Date '2026/2/1') // Constructor call
set d2 (Date '2026/2/1') // Function call
}}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request