If we could travel back in time and rethink Java, C#, and C++, what logical operators would you prefer?
-
-
Some languages use just = and have its meaning depend on context: definition or assignment in statements, comparison in expressions. But that often breaks down, for example in let-binding of comparisons.
-
And then there‘s languages like Prolog that only have unification
End of conversation
New conversation -
-
-
Ada uses = for equality, := for assignment and initial values, i.e. A : Integer := 10; or B : constant := 10.5; -- Compiler works out the type.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.