| Related articles |
|---|
| Undefined behaviour in C23 mwardgkc@gmail.com (Martin Ward) (2025-08-20) |
| Re: Undefined behaviour in C23 643-408-1753@kylheku.com (Kaz Kylheku) (2025-08-20) |
| Re: Undefined behaviour in C23 anton@mips.complang.tuwien.ac.at (2025-08-21) |
| Re: Undefined behaviour in C23 david.brown@hesbynett.no (David Brown) (2025-08-21) |
| Re: Undefined behaviour in C23 mwardgkc@gmail.com (Martin Ward) (2025-08-21) |
| Re: Undefined behaviour in C23 Keith.S.Thompson+u@gmail.com (Keith Thompson) (2025-08-21) |
| Re: Undefined behaviour in C23 david.brown@hesbynett.no (David Brown) (2025-08-22) |
| Re: Undefined behaviour in C23 david.brown@hesbynett.no (David Brown) (2025-08-22) |
| Re: Undefined behaviour in C23 anton@mips.complang.tuwien.ac.at (2025-08-22) |
| Re: Undefined behaviour in C23 Keith.S.Thompson+u@gmail.com (Keith Thompson) (2025-08-22) |
| Re: Undefined behaviour in C23 david.brown@hesbynett.no (David Brown) (2025-08-23) |
| [7 later articles] |
| From: | Martin Ward <mwardgkc@gmail.com> |
| Newsgroups: | comp.compilers |
| Date: | Thu, 21 Aug 2025 15:11:08 +0100 |
| Organization: | Compilers Central |
| Injection-Info: | gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="28588"; mail-complaints-to="abuse@iecc.com" |
| Keywords: | C, standards |
| Posted-Date: | 21 Aug 2025 12:05:54 EDT |
On 20/08/2025 14:06, John wrote:
> When a language is 50 years old and there is a mountain of legacy code that
> they really don't want to break, it accumulates a lot of cruft. If we were
> starting now we'd get something more like Go.
>
> On the other hand, there's the python approach in which they deprecate and
> remove little used and crufty features, but old python code doesn't work any
> more unless you go back and update it every year or two. -John]
Legacy behaviour and undefined behaviour are orthogonal concepts.
Any language ought to have fully defined behaviour: even if the
definition is simply "syntax error" or "the program exits with a
suitable error message". A language can be extended with new
constructs and new functions: then the behaviour changes from "syntax
error" or "error message" to the new functionality.
Whether or not old behaviour is preserved is a completely
separate issue.
\--
Martin
Dr Martin Ward | Email: [martin@gkc.org.uk](mailto:martin@gkc.org.uk) | <http://www.gkc.org.uk>
G.K.Chesterton site: <http://www.gkc.org.uk/gkc> | Erdos number: 4
Return to the
comp.compilers page.
Search the
comp.compilers archives again.