Posted 19 October 2016 - 07:25 PM
Hi there.
Yesterday, in a conversation in Silica's gitter, I wanted my WIP OS to use custom file extensions, .l for libraries, .i for system images…
I don't want the system to be extension-dependent, on its metadata, it will have its custom MIME-like type. The problem comes when in the chat, I was told that I should use .lua extensions on every lua code file, for the people that use an external editor and doesn't want to link those extensions to highlight as Lua, just making it work out of the box. I don't want to have .lua extensions for everything, because I don't want the shell to run system images (that are ran on boot and will probably bug if ran again), libraries (that are only meant to be called and not ran from shells), and types that identify those files will work. I evidently want people to modify the source as they want, because its open source, but not having a .lua extension makes it tedious to change syntax. So the dilemma is: I don't want .lua extensions in the OS (when in ComputerCraft, and the user evidently can make .lua files and be recognized as Lua source, just not in my code) but I want people to edit my source and they want .lua extensions.
What do I do? Should I develop my own types for the OS only or should I make all files use a .lua extension and find other way of identifying those?
Yesterday, in a conversation in Silica's gitter, I wanted my WIP OS to use custom file extensions, .l for libraries, .i for system images…
I don't want the system to be extension-dependent, on its metadata, it will have its custom MIME-like type. The problem comes when in the chat, I was told that I should use .lua extensions on every lua code file, for the people that use an external editor and doesn't want to link those extensions to highlight as Lua, just making it work out of the box. I don't want to have .lua extensions for everything, because I don't want the shell to run system images (that are ran on boot and will probably bug if ran again), libraries (that are only meant to be called and not ran from shells), and types that identify those files will work. I evidently want people to modify the source as they want, because its open source, but not having a .lua extension makes it tedious to change syntax. So the dilemma is: I don't want .lua extensions in the OS (when in ComputerCraft, and the user evidently can make .lua files and be recognized as Lua source, just not in my code) but I want people to edit my source and they want .lua extensions.
What do I do? Should I develop my own types for the OS only or should I make all files use a .lua extension and find other way of identifying those?