-
Notifications
You must be signed in to change notification settings - Fork 13
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
Lua API format #40
base: master
Are you sure you want to change the base?
Lua API format #40
Conversation
I would rather move this standard to |
@viluon Okay, good idea. |
What obstacles remain before we can accept this proposal? |
The proposal defines _G[ "myAPI.api" ].foo( "bar" ) I don't think that's intended. Any sane being (no offence @lyqyd, I saw LyqydOS source) would avoid |
I'm not entirely certain why we're pushing in the direction of everything having a file extension. It makes a lot of sense with pure data files, like nfp, or even table. It doesn't make a lot of sense (within the context of ComputerCraft) for executable files, like lua programs or APIs. It's definitely true that there are blurry lines between programs and APIs especially, given the way they are loaded and run. Can we get away with no file extension on both apis and programs? |
@lyqyd the main issue is detecting the MIME. Extensions make it easy. So, if they are going to have different extensions, then ideally, yes, they would have different extensions. That said, I think in realise people are going to want to have no extension for both, so we'll need to figure out how that should work. |
As discussed in #26 and #18, the Lua format is being split in to separate types.
This format is exclusively for files that are loadable via
os.loadAPI
. It might be worth also considering what to do with files that are APIs but use some custom API loader or class system. Maybe a miscellaneous Lua format?Also see: #39 and #41.