{ curly strings } #27

Closed
defunkt wants to merge 6 commits from curly-strings into main
Owner

⚠️ CONTROVERSIAL ⚠️

This adds literal curly strings to Shrimp:

>> str.trim { hey there man } | echo
hey there man

str.trim {

This is a string.
This is also part of the same string.
And this? This too.

} | echo

They do not support interpolation or any funny business as of now. (Should they?)

⚠️ CONTROVERSIAL ⚠️ This adds literal curly strings to Shrimp: ``` >> str.trim { hey there man } | echo hey there man str.trim { This is a string. This is also part of the same string. And this? This too. } | echo ``` They do **not** support interpolation or any funny business as of now. (*Should they?*)
defunkt added 1 commit 2025-11-06 19:03:37 +00:00
probablycorey requested changes 2025-11-06 21:35:03 +00:00
probablycorey left a comment
Owner

It has grown on me!

It has grown on me!
defunkt added 2 commits 2025-11-07 05:04:36 +00:00
Author
Owner

Okay, this now supports interpolation.

expect(`name = Bob; { Hello $name! }`).toEvaluateTo(` Hello Bob! `)
expect(`a = 1; b = 2; { sum is $(a + b)! }`).toEvaluateTo(` sum is 3! `)
Okay, this now supports interpolation. ```typescript expect(`name = Bob; { Hello $name! }`).toEvaluateTo(` Hello Bob! `) expect(`a = 1; b = 2; { sum is $(a + b)! }`).toEvaluateTo(` sum is 3! `) ```
defunkt added 1 commit 2025-11-07 05:23:26 +00:00
defunkt force-pushed curly-strings from bb92a9e0b4 to b7a65e07dc 2025-11-07 05:26:45 +00:00 Compare
defunkt added 1 commit 2025-11-07 05:30:56 +00:00
Author
Owner

Merged in #35

Merged in #35
defunkt closed this pull request 2025-11-09 00:14:41 +00:00

Pull request closed

Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
2 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: probablycorey/shrimp#27
No description provided.