No need for version expression is a lie
Adam D Ruppe
destructionator at gmail.com
Thu Aug 24 18:12:07 UTC 2023
On Thursday, 24 August 2023 at 17:39:34 UTC, Dukc wrote:
> I think we want to let the user to pick.
The top level static assert has no value.
I went through with this let-the-user-pick thing in simpledisplay
too, like described in the blog. It was a bunch of work that led
nowhere; it is better to just leave the identifier undefined and
let the test process catch it.
These things look like a good idea when you're starting a new
project, but they don't stand up to experience supporting things
long term.
> Alternatively for less verbose syntax, `object.d` would have
hahaha another example of how D's `version` keyword is useless
baggage in the language, even for this trivial thing, you'd
rather have an `enum`.
More information about the Digitalmars-d
mailing list