Pronunciation of programming structures (particularly in c#)
- by Andrzej Nosal
As a non-English speaking person I often have problems pronouncing certain programming structures and abbreviations. I've been watching some video tutorials and listening to podcasts as well, though I couldn't catch them all.
My question is what is the common or correct pronunciation of the following code snippets?
Generics, like
IEnumerable<int> or in a method void Swap<T>(T lhs, T rhs)
Collections indexing and indexer access e.g.
garage[i], rectangular arrays myArray[2,1] or jagged[1][2][3]
Lambda operator =>, e.g. in a where extension method
.Where(animal => animal.Color == Color.Brown)
or in an anonymous method
() => { return false;}
Inheritance
class Derived : Base (extends?)
class SomeClass : IDisposable (implements?)
Arithemtic operators
+= -= *= /= %= !
Are += and -= pronounced the same for events?
Collections initializers
new int[] { 4, 5, 8, 9, 12, 13, 16, 17 };
Casting
MyEnum foo = (MyEnum)(int)yourFloat; (as?)
Nullables
DateTime? dt = new DateTime?();
I tagged the question with C# as some of them are specific to C# only.