-
Notifications
You must be signed in to change notification settings - Fork 47
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
Should the package be named ziglua? #117
Comments
I think there's a case for keeping the name |
That is a good point, now that there are functions beyond normal lua. And sometimes Zig guidelines/suggestions are a bit too opinionated for my liking |
IMO |
as far as |
https://github.com/ziglang/zig/blob/2d888a8e639856e8cb6e4c6f9e6a27647b464952/lib/init/build.zig.zon#L2-L9
Zig says that using the word
zig
in the package name is redundant. But is this actually helpful?Let's say we rename it to
lua
. Then by default the dependency code would look like this in a build.zigPeople are always welcome to rename things in the
.zon
file, but will they?But with that, the module name is still
ziglua
, so the build file would continue asMaybe this should be
exe.root_module.addImport("lua", lua.module("lua"));
?But I really like naming my
Lua.init()
variablelua
, and I don't want that to conflict. Not sure what to do here.Lurking in Discord, it seems like ziglua is sometimes referenced as an example of how a Zig project is structured. This is probably because Zig doesn't have great docs and most of us are just looking at what everyone else is doing.
So
For clarity I believe the repo should be named ziglua. This makes it clear the purpose of the project and makes it searchable.
The text was updated successfully, but these errors were encountered: