0
pronunciation of assignment
Hi everybody, this is a question to the English native-speakers of you. If you have a line of code like 'String name = "David"; and you want to read this aloud to someone else, say a colleague, how do you pronounce it? String name is being assigned to David? String name is getting David? Or something else? Thanks in advance andreas
3 Antworten
+ 3
One trick from my Pascal times was to call the assignment operator (it was ":=") like "takes as value". In Java, I'd pronounce "=" as "takes as value", in order to differentiate it from the comparison operator "==", which I'd read as "is equal to".
+ 1
String name is equal to David
+ 1
Thank you, Alvaro. That's exactly the differentiation I use in German.
By the way, Standard Pascal was also my first programming language, and this was only one and a half years ago. It was much more difficult than I had expected it to be ;)