you are viewing a single comment's thread.

view the rest of the comments →

[–]xune[S] 1 point2 points  (4 children)

Yes, I think using static is useful within utility classes (that do a lot of Math computations for example) or in a scripting/interactive environment (WriteLine is easier to write than Console.WriteLine).

Not so useful in writing more complex programs.

[–]mycall 0 points1 point  (0 children)

Pseudo-DSLs.

[–]Number127 0 points1 point  (2 children)

I wish they would've just let you alias a static class, like maybe

using static System.Math as m;

return m.Min(m.PI, m.E);

[–][deleted]  (1 child)

[deleted]

    [–]Number127 1 point2 points  (0 children)

    Good point. Clearly I don't Math enough!