Support for the equivalent of #include has been added to "neos" the
universal compiler that can compile any programming language:
Some languages use include to compensate the lack of some
better features for the same purpose. languages that have
those better features don't need include and usually haven't.
On 2025-03-22 18:15:53 +0000, Mr Flibble said:
Support for the equivalent of #include has been added to "neos" the
universal compiler that can compile any programming language:
You should reconsider that. Some languages use include to compensate
the lack of some better features for the same purpose. languages that
have those better features don't need include and usually haven't.
On 3/23/25 5:15 AM, Richard Heathfield wrote:
On 23/03/2025 08:54, Mikko wrote:
<snip>
Some languages use include to compensate the lack of some
better features for the same purpose. languages that have
those better features don't need include and usually haven't.
If I were a Ritchie (pace, Tevye, there is no music), the VERY
FIRST TIME a compilation failed because I forgot a header I'd
have merged all the headers into one and then hardcoded that
one everything.h header into the compiler itself. Problem...
SOLVED.
Doesn't work for user includes.
Yes, we could have the compiler auto include all the standard
headers, but then we lose the ability to improve the backwards
compatibility of standards that require the inclusion of a new
header to enable new nice symbols for new features that used to
be available to the user to use.
On 23/03/2025 08:54, Mikko wrote:
<snip>
Some languages use include to compensate the lack of some
better features for the same purpose. languages that have
those better features don't need include and usually haven't.
If I were a Ritchie (pace, Tevye, there is no music), the VERY FIRST
TIME a compilation failed because I forgot a header I'd have merged all
the headers into one and then hardcoded that one everything.h header
into the compiler itself. Problem... SOLVED.
On 23/03/2025 08:54, Mikko wrote:
<snip>
Some languages use include to compensate the lack of some
better features for the same purpose. languages that have
those better features don't need include and usually haven't.
If I were a Ritchie (pace, Tevye, there is no music), the VERY FIRST
TIME a compilation failed because I forgot a header I'd have merged all
the headers into one and then hardcoded that one everything.h header
into the compiler itself. Problem... SOLVED.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 151:51:25 |
Calls: | 10,383 |
Files: | 14,054 |
Messages: | 6,417,815 |