News for hackers. Stuff that matters.
Re:How well do you know C++ auto type deduction? by lan321 on Monday December 15, 2025 @10:09AM (#46275467)
I usually prefer

    List<Foo> x = new();
since it gives me better alignment and since it's not confused with dynamic.

Nowadays I only use

    var x = new List<Foo>();
in non-merged code as a ghetto TODO if I'm considering base types/interface.

There are no comments on this comment yet.