D enters Tiobe top 20
doob at me.com
Mon Nov 11 12:22:57 UTC 2019
On Monday, 11 November 2019 at 10:39:24 UTC, Walter Bright wrote:
> I just haven't found them particularly useful or helpful when
> I've tried them.
There are two problems with contracts in D.
1. In-contracts are executed by the callee instead of the caller.
Currently there's only a syntactic difference between an
in-contract and a regular assertion inside the function body.
2. Phobos is not shipped with assertions enabled. There should be
a debug version of Phobos shipped with DMD with assertions
enabled. Perhaps that could be linked by default when the
`-debug` flag is used.
More information about the Digitalmars-d