-
Notifications
You must be signed in to change notification settings - Fork 6
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
CCSMB 4: Recommendations for Lua Code #16
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very cool! Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about returning multiple values in the same statement, is that allowed?
This seems to be a great addition to CCSMB. However, I would like to propose to change the name of the standard to "Recommendations for Executable Lua Source," which would indicate that this RFC exclusively defines information for Lua packages and libraries, NOT Lua tables and/or byte code, which may become their own separate standard entirely. |
|
|
||
**1.1.3.** Code intended for distribution MUST have a licence statement located near or at the top of the file. This can be any statement of licence, including "all rights reserved" or "public domain". The CCSMB RECOMMENDS using one of the following licence types: | ||
|
||
* CC0 or Unlicense or Public Domain |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe CC0 isn't recommended for code (isn't approved by OSI)
|
||
**1.1.2.** Lua files SHOULD have the extension `.lua`, but older programs MAY accept no extension as well. | ||
|
||
**1.1.3.** Code intended for distribution MUST have a licence statement located near or at the top of the file. This can be any statement of licence, including "all rights reserved" or "public domain". The CCSMB RECOMMENDS using one of the following licence types: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recommend adding links to the licenses (or choosealicense.com) if this document doesn't go into their differences
@@ -0,0 +1,122 @@ | |||
# CCSMB 4: Recommendations for Lua Code |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CCSMB 4 should be italicized: CCSMB 4
This RFC adds a proper standard for recommendations for Lua code, including programs and libraries. It's divided into two types of guidelines: interface guidelines, which are required to be compliant with the spec; and style guidelines, which are recommendations by the CCSMB but not required for full compliance. This supersedes #9 by adding much more detail to how Lua files should be written.
This is not complete at the moment, but I figured it would be good to add it for now to get more feedback and suggestions for things to add.
Closes #9