Programming Languages on Crack

Walter Bright newshound2 at digitalmars.com
Thu Jun 17 18:12:42 UTC 2021


On 6/17/2021 3:33 AM, Alexandru Ermicioi wrote:
> Not always possible. Sometimes you have objects, that 90% are safe, and only 10% 
> not. Having dedicated functions or interfaces for those 10% is just plain and 
> unneeded clutter. How would I even name those methods/interfaces?

"Not possible" and "unneeded clutter" are unrelated. Anyhow, consider it a 
challenge to one's organizational skills. I didn't say it was always the easy 
path. But it's worth making the effort.


> Truth to be told, I gave in to this temptation, though they were one liners. But 
> still I fear that this temptation is quite great, as not every software engineer 
> is keen at keeping highest degree of safety and code quality. That is my concern 
> why current use of @trusted, and trusted lambda might not be sufficient, to make 
> it quite convenient for ordinary engineer to use them properly.

The trusted lambda (){}() is indeed bad, but blessing it with new syntax is much 
worse.


More information about the Digitalmars-d mailing list