Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Modules that have names that are also Go keywords don't work #108

Open
trotterdylan opened this issue Jan 13, 2017 · 1 comment
Open

Modules that have names that are also Go keywords don't work #108

trotterdylan opened this issue Jan 13, 2017 · 1 comment

Comments

@trotterdylan
Copy link
Contributor

E.g. the struct module has to declare package struct at the top of the file, which is a compilation error. The obvious options seem to be:

  1. Always prefix Grumpy package names so that there is never a keyword collision
  2. Have special handling in grumpc that changes the way imports work for modules that are named the same as a Go keyword.
@S-YOU
Copy link
Contributor

S-YOU commented Jan 13, 2017

For hand-written codes that using grumpy will have less impact with 2, I guess.
struct is not ok, but copy is ok, so may be not so many there.

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

No branches or pull requests

2 participants