Why is D unpopular?
forkit
forkit at gmail.com
Sun May 22 22:59:26 UTC 2022
On Sunday, 22 May 2022 at 15:47:05 UTC, Siarhei Siamashka wrote:
>
> "enforce" in D is the same as "assert!" in Rust
> "assert" in D is the same as "debug_assert!" in Rust
>
> Looks like you are only unhappy about names, but all the
> necessary functionality is available.
'assert' comes naturally when making an 'assertion'.
assert(assert == assertion) // true
'enforce' does not. It just seems out of place to me.
More information about the Digitalmars-d
mailing list