What is the reasoning behind the lack of conversions when passing parameters

Carl Sturtivant sturtivant at gmail.com
Fri Feb 9 23:59:18 UTC 2024


On Tuesday, 6 February 2024 at 10:10:32 UTC, FeepingCreature 
wrote:
> I just don't think that "this feature can be abused" is a 
> convincing argument. So what? Make it opt-in, mark it as 
> dangerous, then when people use it it's on them.
>
> I don't want implicit conversion to always be enabled, I want 
> it to be enabled by a keyword or UDA. @implicit or something.

At one point something related was viewed with approval. Probably 
got nixed behind the scenes. Disappointing inflexibility indeed.

https://forum.dlang.org/post/lddjmh$8rn$1@digitalmars.com



More information about the Digitalmars-d mailing list