Worst ideas/features in programming languages?

surlymoor surlymoor at cock.li
Tue Oct 12 05:29:23 UTC 2021

On Tuesday, 12 October 2021 at 03:17:08 UTC, SealabJaster wrote:
> `abc => { return 123; }` should not be returning a function 
> that returns a function.


>sumtype and/or tagged unions. esp. in regards to pattern matching

I just want to be able to have a returned value be implicitly 
wrapped if its type is part of the `SumType` returned by the 

// -preview=shortenedMethods is awesome
SumType!(int, string) div(int a, int b) => b != 0 ? a : "Divisor 
is zero";

More information about the Digitalmars-d mailing list