On Monday, 24 November 2025 at 14:37:22 UTC, Jabba Laci wrote:
I implemented [Advent of Code 2015, Day 6, Part
1](https://adventofcode.com/2015/day/6) in D. The code is here:
https://github.com/jabbalaci/AdventOfCode2015/tree/main/day06/d/part1 . It runs for 3 seconds. I found it a bit much, so I also wrote it in Python. To my surprise, the Python program also ran for 3 seconds. I expected that the D program should be much faster.
[...]
There are many things to say but first of all, check what is a
`final switch`.
```d
final switch (option){
case Option.off, Option.on: { ... }
case Option.toggle: { ... }
}
```
I dont say perfs will be better, it's more a matter of style.