Wondering as a non coder, can something like that happen with modern languages?
When I learned some C++ back in the day I remember my code not working because I forgot a = in a == statement. But then it just didn’t compile and was unusable until I discovered it.
Back then, it would written in assembly which is has basically no compilations rules other than be translated to machine code. So it will do litterally what you tell it to do.
Wondering as a non coder, can something like that happen with modern languages?
When I learned some C++ back in the day I remember my code not working because I forgot a = in a == statement. But then it just didn’t compile and was unusable until I discovered it.
Back then, it would written in assembly which is has basically no compilations rules other than be translated to machine code. So it will do litterally what you tell it to do.
If you call the wrong variable, anything is possible.
In C/C++:
int a = 3; if (a = 4) { printf("four");} if (a == 3) { printf("three");}
Will yield
four
.