What is the difference between enum and shared immutable?
schveiguy at gmail.com
Thu Oct 29 15:00:42 UTC 2020
On 10/29/20 10:39 AM, H. S. Teoh wrote:
> On Thu, Oct 29, 2020 at 09:50:28AM -0400, Steven Schveighoffer via Digitalmars-d-learn wrote:
>> D frequently allows no-op attributes.
> I find that to be a bad smell in terms of language design, actually.
> Either something should be allowed and have a definite effect, or it
> should not be allowed. Not this murky grey area where you can write
> something and it seems to be allowed, but doesn't actually have any
I think it's to aid in things like:
// lots of things, but only functions are tagged as @safe
More information about the Digitalmars-d-learn