dlang-community / DCD

The D Completion Daemon is an auto-complete program for the D programming language
GNU General Public License v3.0
349 stars 71 forks source link

Use scope instead of std.typecons.scoped #656

Closed nordlow closed 3 years ago

WebFreak001 commented 3 years ago

wasn't there something about that you should use scoped!() instead of scope for some reason?

nordlow commented 3 years ago

wasn't there something about that you should use scoped!() instead of scope for some reason?

I see no reason to use scoped in variable declarations as scope is a builtin feature that behaves that same as scoped but without reliance on template bloat and std.typecons (Phobos) and activates escape analysis on declaration when -dip1000 is used.