[OT] What are D's values?
notrealemail at gmail.com
Tue Oct 5 01:57:40 UTC 2021
On Tuesday, 5 October 2021 at 01:33:45 UTC, Paul Backus wrote:
> On Tuesday, 5 October 2021 at 00:51:26 UTC, Tejas wrote:
> Whenever you write a `static if` statement, you end up with two
> possible versions of the code: one where the condition is true,
> and one where it's false. It follows that if you have N `static
> if` statements in your program, then you have 2^N possible
> versions of the code--so the number of versions increases
> exponentially with respect to the number of `static if`
So the key is getting expressiveness and performance while
maintaining a degree of conciseness.
This thread has been very useful for me, thank you, and everyone
who has answered me :D
More information about the Digitalmars-d