Timeline for What is the difference between syntax and semantics in programming languages?
Current License: CC BY-SA 4.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 12, 2022 at 10:11 | comment | added | Konstante | I know that you've used metaphors (to keep the answer short), but saying about the correctness of metaphors is difficult. | |
| Mar 29, 2022 at 7:38 | comment | added | meaning-matters | @TaThanhDinh The phrases are correct. There are of course more ways to mess up. I've kept my answer short and clear. | |
| Mar 17, 2022 at 23:06 | comment | added | Konstante | Both phrases are wrong. E.g. ``` int foo() { int x; return &x; } ``` is syntactically correct (but not compile). A fix (i.e. make the semantics correct) by changing the type of foo to int* foo(), makes the function buggy (i.e. doesn't work) since returning a dangling pointer. | |
| Mar 27, 2020 at 19:12 | history | answered | meaning-matters | CC BY-SA 4.0 |