shared switch

Imperatorn johan_forsberg_86 at hotmail.com
Mon Oct 9 13:54:39 UTC 2023


On Monday, 9 October 2023 at 02:07:50 UTC, Jonathan M Davis wrote:
> On Sunday, October 8, 2023 8:02:22 AM MDT Imperatorn via 
> Digitalmars-d wrote:
>> [...]
>
> In general, the biggest thing there would be to try to be 
> _very_ thorough with unit tests (and integration tests and the 
> like, etc). The better your testing, the more issues that 
> you'll find. Arguably, one of the biggest features of D is that 
> it has built-in unit testing with unittest blocks, making it 
> really easy to write tests without having to jump through a 
> bunch of extra hoops like you have to do in most languages.
>
> [...]

Whoa, I didn't expect such a long and well formulated answer. I 
will have to digest this for some time. But yes, I agree. Even 
languages that are formally verified can have logical errors, so 
in that sense testing is the best you can do.

Thanks for your answer


More information about the Digitalmars-d mailing list