4 ms·
As a result there are features missing that you might find in other implementations, e.g. standard Lua has IO but cannot create directories. But getting halfway
by seabee 16y ago
As a result there are features missing that you might find in other implementations, e.g. standard Lua has IO but cannot create directories. But getting halfway there on all platforms is better than all the way on one platform and making you work out how to fix it to run on yours.
- malkia 16y agoYes, I agree, but back in the Apple ][ DOS era (before Pro-DOS) there were even not directories. As an example that went in the other direction: The Common Lisp language specification! It even has host, path, version number for describing file names - but I think this now hampers the language's image if one stars coding in it for the first time.
- seabee 16y agoCertainly, but you don't have to go as far back as that for an example: just compare the drive letters in Windows to the lack of them in Unix. It works very well in Lua's favour to stick to just the C library given the desire to use it in embedded computers. However, it's valid to wonder why a basic feature supported by 99% of computers is not available out of the box; you judge things based on what's available now, not the past. I should think the C library would be quite different had it been designed 20 years later.