No increment operator in VB.net

I would say that the language designers simply thought that BASIC was a better baseline than C, when designing Visual BASIC. You can follow the lineage of C (and, earlier, BCPL) through C++, Java and C#. The VB lineage comes from the original BASIC from Dartmouth (and, earlier, Fortran) and is a different beast altogether. … Read more

What does mean “?” after variable in C#?

Well, ?. is a null-conditional operator https://msdn.microsoft.com/en-us/library/dn986595.aspx x?.y means return null if x is null and x.y otherwise ?? is a null-coalescing operator https://msdn.microsoft.com/en-us/library/ms173224.aspx x ?? y means if x == null return y, otherwise x Combining all the above helper?.Settings.HasConfig ?? false means: return false if helper == null or helper.Settings.HasConfig == null otherwise … Read more

What does ,= mean in python?

It’s a form of tuple unpacking. With parentheses: (plot1,) = ax01.plot(t,yp1,’b-‘) ax01.plot() returns a tuple containing one element, and this element is assigned to plot1. Without that comma (and possibly the parentheses), plot1 would have been assigned the whole tuple. Observe the difference between a and b in the following example: >>> def foo(): … … Read more