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

Middle dot as identifier #793

Closed
gopherbot opened this issue May 20, 2010 · 3 comments
Closed

Middle dot as identifier #793

gopherbot opened this issue May 20, 2010 · 3 comments

Comments

@gopherbot
Copy link

by raul.san@sent.com:

The U+00B7 MIDDLE DOT should be against the specs, but it's  accepted. 

    var one·FOO = "foo"

Possibly a bug but where? In the specs or in GC?

http://golang.org/doc/go_spec.html#Identifiers 

---
GOARCH=amd64
GOOS=linux
(f7e1cbc5ce28 tip)
@griesemer
Copy link
Contributor

Comment 1:

It's not allowed by the spec but it's intentional in GC - it is/was necessary to
bootstrap the system, and it's still 
needed in some cases where the runtime or assembly code is involved. Note that gofmt for
instance doesn't 
permit it.
That said, there may be alternative solutions now that would not require the middle dot.

Labels changed: added priority-low, removed priority-medium.

Status changed to Thinking.

@rsc
Copy link
Contributor

rsc commented May 21, 2010

Comment 2:

It's possible that the remaining uses of the center dot in
import/export data are unnecessary, but I'm not 100% sure.
It's certainly easy to disallow in Go programs proper, and
I'll do that.

Owner changed to r...@golang.org.

Status changed to Started.

@rsc
Copy link
Contributor

rsc commented May 21, 2010

Comment 3:

This issue was closed by revision 9e497c3.

Status changed to Fixed.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
@rsc rsc removed their assignment Jun 22, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants