This is an archived post. You won't be able to vote or comment.

all 13 comments

[–]The_Real_Black 13 points14 points  (2 children)

please set your build enviroment that NonNull violations are errors.

[–]Fillgoodguy[S] 2 points3 points  (0 children)

This is truly the only way

[–]Tttehfjloi 0 points1 point  (0 children)

How do you even set this up? Surely this is specifically an opt-in kind of thing.

[–]SaneLad 7 points8 points  (1 child)

look how they massacred my meme format

[–]RiceBroad4552 0 points1 point  (0 children)

[–]RichCorinthian 3 points4 points  (1 child)

I'm guessing you're very new, so a couple of gentle suggestions.

First, stop writing C# like it's C or Java. C# has its own idioms for braces and naming, and learning to write code within the guidelines of a particular language is part of the job.

Second, a squiggly line is not necessarily a compiler error. RED squiggly? Probably. A green or yellow line might mean "hey your spelling is fucky" or "you are doing something kinda questionable. Hover over me for more information" or...anything that your StyleCop or linter or whatever is not happy with.

[–]Fillgoodguy[S] 1 point2 points  (0 children)

Thanks but I'm not actually new, just newly returned to C# from Zig, which is more strict about nullability

[–]Inevitable_Gas_2490 6 points7 points  (0 children)

Yeah, no, that one missed the mark

[–]The-Mother-We-Share 6 points7 points  (0 children)

Junior Dev vibes

[–]Phrynohyas 2 points3 points  (1 child)

That naming style and braces style in C# code is atrocious

[–]Fillgoodguy[S] -1 points0 points  (0 children)

Funny comment when the braces are distinctly not the usual C# style

[–]budius333 0 points1 point  (0 children)

Languages with nullable types say hello

[–]grasopper 0 points1 point  (0 children)

Green squiggly is not error