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

String literals and String module issues #2656

Open
lojikil opened this issue Aug 8, 2021 · 1 comment
Open

String literals and String module issues #2656

lojikil opened this issue Aug 8, 2021 · 1 comment

Comments

@lojikil
Copy link

lojikil commented Aug 8, 2021

Overview

Ok, I worked with @yawaramin (huge thank you to them) on the ReasonML forums to narrow this down. I was clearly misreading the String module, so that's fixed; I'll attempt to figure out what the source of Parsing issues I've seen are. Namely, I've had issues strings with escapes, esp \".

I ran into this in a different context, wherein Escaped strings cause the compiler to complain about missing braces, but I ran into a similar edge case today:

Reason # let src1 = "\"test\""foo\"";
let src1: string = "\"test\"";
Reason # String.length(src1);
- : int = 6
@yawaramin
Copy link
Contributor

Discussion in https://reasonml.chat/t/string-literals-and-string-module-issues/2662

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants