What previews should I enable?

monkyyy crazymonkyyy at gmail.com
Fri May 30 01:26:25 UTC 2025


On Friday, 30 May 2025 at 00:31:56 UTC, luafyn wrote:
> Hi everyone, so dmd includes several -preview flags and I was 
> wondering if there were any that are recommended to enable?
>
> I like using the most up to date stuff possible so I've 
> actually been using -preview=all and it seems to work alright, 
> but then I hit a weird issue with sumtypes and -preview=dip1021 
> so I'm wondering if that's a bad idea.
>
> Some of the previews seem pretty ok to use like the bugfix 
> previews but I'm not sure about the DIPs. Like, is it required 
> for me to use -preview=dip1000 to have `scope` do anything, for 
> example? Cheers!

None, its all stuff that makes less code work, several of them 
have been there for years with known fundamental flaws.


More information about the Digitalmars-d-learn mailing list