Ludus should allow escape chars in strings #44

Open
opened 2025-06-28 22:05:19 +00:00 by scott · 2 comments
Owner

Ludus should allow & honour escape characters in strings, in particular: \n, \t, and \". Use Rust's strategy of using {{ and }} for { and }, respectively.

Ludus should allow & honour escape characters in strings, in particular: `\n`, `\t`, and `\"`. Use Rust's strategy of using `{{` and `}}` for `{` and `}`, respectively.
scott added the
bug
feature
labels 2025-07-02 16:28:46 +00:00
scott added this to the Core: CC2 milestone 2025-07-02 17:15:25 +00:00
Author
Owner

Part 1: \t, \n, \r, \", \\ all work properly.

Belay that: \" and \\ aren't. Ugh.

Part 1: `\t`, `\n`, `\r`, `\"`, `\\` all work properly. Belay that: `\"` and `\\` _aren't_. Ugh.
Author
Owner

I managed to get \\ working, I don't know why \" doesn't. This is only in string literals in source code, though. Leaving this open, but I think we can live with this for now.

I managed to get `\\` working, I don't know why `\"` doesn't. This is only in string literals in source code, though. Leaving this open, but I think we can live with this for now.
scott modified the milestone from Core: CC2 to Expanded: CC2 2025-07-04 18:23:30 +00:00
scott modified the milestone from Expanded: CC2 to Post-CC2 2025-07-06 06:02:38 +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/rudus#44
No description provided.