Skip to content

space either side of ^ operator is significant #45761

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

Open
HelmZalee opened this issue Apr 9, 2025 · 3 comments
Open

space either side of ^ operator is significant #45761

HelmZalee opened this issue Apr 9, 2025 · 3 comments

Comments

@HelmZalee
Copy link

HelmZalee commented Apr 9, 2025

Type of issue

Typo

Description

Surprised to get an error entering ?2^3 into the Immediate window, I went to the Documentation where I found "the syntax is number ^ exponent". It turns out the space either side of the caret is significant, as taken very carefully, that text says. Nonetheless, it would seem worth mentioning, as at least in my experience, spaces around an operator are rarely significant. Further down, the thing is shown in a gray background (
Image). Hard to be certain, but it doesn't look like the spaces are part of it. They should be.

Not sure what "type" of issue this should be...

Page URL

https://learn.microsoft.com/en-us/dotnet/visual-basic/language-reference/operators/exponentiation-operator

Content source URL

https://github.com/dotnet/docs/blob/main/docs/visual-basic/language-reference/operators/exponentiation-operator.md

Document Version Independent Id

2b3272c5-c7c5-a0f0-528d-47f37ca4e2a1

Platform Id

c1cec2d5-268b-276c-0527-6ae1f170cbbe

Article author

@KathleenDollard

Metadata

  • ID: 1db6850a-fe06-894d-5f2c-96e6691ff8c5
  • PlatformId: c1cec2d5-268b-276c-0527-6ae1f170cbbe
  • Service: dotnet-visualbasic

Related Issues

@KathleenDollard
Copy link
Contributor

@KlausLoeffelmann Looks like the requested fix is appropriate. Can you confirm?

@BillWagner
Copy link
Member

@KathleenDollard @KlausLoeffelmann

On a related question, is whitespace significant around all operator tokens? If so, this should be a general fix

@HelmZalee
Copy link
Author

HelmZalee commented Apr 18, 2025 via email

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

No branches or pull requests

4 participants