20
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 25 Jun 2023
20 points (100.0% liked)
Programming
13361 readers
1 users here now
All things programming and coding related. Subcommunity of Technology.
This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.
founded 1 year ago
MODERATORS
Thank you for your post, before this thread I thought that all the C named languages (c, c++ and c#) were at least similar but it looks like it's not the case.
They share a genealogy, but as programs are created and maintained in different languages, developers come to wish for different syntaxes that would (1) reduce how much code must be written to accomplish a common logical task, (2) make the code that's written easier to read/understand, (3) reduce concerns about variable types until runtime, and/or (4) overly restrict not just the variable types but also if/when variables can be modified. This list is not exhaustive.
There is a partial programming language family tree here, showing which languages influenced other languages: https://www.researchgate.net/figure/Genealogy-of-Programming-Languages_fig36_260447599
C derivatives are similar in terms of things like imperative control flow, lower-case keywords like
if
, mostly insignificant whitespace,{ }
-delimited blocks, etc., but they can be vastly different in terms of features, semantics, idioms, and typical use cases.It's like how non-programming languages can use the same Latin alphabet but be vastly different in terms of grammar and culture.