discussing go, one says:
why this func incTwo(a, b int) (c, d int) not (int c, d) incTwo(int a, b);
and why var v2 string not var string v2;
answer:
because compare
int (*(*fp)(int (*)(int, int), int))(int, int) and f func(func(int,int) int, int) func(int, int) int
#go #syntax #grammar #programming #programming_languages #code #notation
In programming jargon, Yoda conditions (also called Yoda notation) is a programming style where the two parts of an expression are reversed in a conditional statement. The name for this programming style is derived from the Star Wars character named Yoda, who spoke English with non-standard word order.
https://en.wikipedia.org/wiki/Yoda_conditions
#yoda #conditions #notation #programming #star-wars #order #style