dotnetomaniak.pl

Strona głównaSztuka programowania

Recently, I had quite an interesting discussion about var keyword in C#. Basically, my interlocutor tried to convince me that using var we drastically reduce code readability, so we should only use that together with anonymous types. He also mentioned performance and that some operations cannot be done using implicit typing. Well, if you’ve been reading my blog for some time, you’ve probably spotted that I’m a big fan of vars, and I put them every time it’s possible. B...

Źródło: foreverframe.net
Dziel się z innymi:
To var or not to var? - Forever F[r]ame

Sztuka programowania 300 dni, 18 godzin, 23 minuty temu dpawlukiewicz 270 pokaż kod licznika zwiń