We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
go 1.21, expr 1.15.8
I noticed slicing a string literal is giving an error:
"hello"[1:3]
unexpected token Bracket("[") (3:8)
But slicing a string variable works:
let s = "hello"; s[1:3]
"el"
I was hoping they would give the same output.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
go 1.21, expr 1.15.8
I noticed slicing a string literal is giving an error:
But slicing a string variable works:
I was hoping they would give the same output.
The text was updated successfully, but these errors were encountered: