Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add explicit string wrapping system #15

Open
isaiahshiner opened this issue Jul 27, 2021 · 0 comments
Open

Add explicit string wrapping system #15

isaiahshiner opened this issue Jul 27, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@isaiahshiner
Copy link
Member

In general, passing strings back from GuestLangs is very inconsistent and confusing. It works, but it's very tedious.

If you do <|return (|out|)|> it will treat out literally, as though you want to execute out as dit code.
You can wrap it like <|return '(|out|)'|> but this is confusing and causes issues with quote characters inside the string.

I'm not sure how to solve this, but I'm sure there's a reasonable solution that's better than what we have now. It's probably something like <|return literal((|out|))|>, where literal is a built_in function that wraps the string.

@isaiahshiner isaiahshiner added the enhancement New feature or request label Jul 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant