Language Reference
monkyyy
crazymonkyyy at gmail.com
Mon Aug 19 20:28:29 UTC 2024
On Monday, 19 August 2024 at 20:17:58 UTC, user1234 wrote:
> On Monday, 19 August 2024 at 19:14:19 UTC, monkyyy wrote:
>> The core d languge should be a light 50 pages; templates can
>> then be dense 500 pages
>
> So much less is required. Templates are much more easy to get
> that you think. A single page is enough. To be a bit
> provocative it's jut about filling the holes.
> Then it becomes a bit more complex when it's about
> overloading... but essentially templates are incomplete syntax
> trees that you complete with arguments. Dead stupid.
>
> Now sure D adds a bit of complexity over that simple concept.
> How ?
> 1. constraints. Well well well, isn't that thing just made to
> deal with overloading ;)
> 2. eponymous declarations
>
> Otherwise, the other big thing to get is that template
> instances can insert new things in the AST. The compiler deals
> with that quite nicely because it's "multi-pass".
I havnt yet seen coherent explanations for the ~~bugs~~ features
I know, much less concise ones. Spooky quantum effects, the order
of compilation, the syntax of sequences, the mix file having
effects, breaking down overload sets, traits and honestly their
bad api, is statements, etc.
Im quite sure it isnt only a page
More information about the Digitalmars-d
mailing list