Re:Yoda Conditions
by jordigh on Friday February 17, 2017 @03:28PM
(#13671427)
`int a <- b <- 0` or `int a := b := 0` would have worked just as well.
Programmers using equals for assignment is a bit of a misunderstanding of what the mathematical idiom "let x = 5" means. The assignment is signaled by "let", not by "=". In fact, several programming languages use "let" exactly for this purpose too.
Programmers using equals for assignment is a bit of a misunderstanding of what the mathematical idiom "let x = 5" means. The assignment is signaled by "let", not by "=". In fact, several programming languages use "let" exactly for this purpose too.