What are some programming languages that reuse most of the syntax of another (rather than just a few elements of it?)

  • bricked@feddit.org
    link
    fedilink
    Deutsch
    arrow-up
    5
    ·
    edit-2
    3 hours ago

    Interesting question because I think there are entire families of programming languages that share mostly the same syntax. Often, a popular language of its time like C, Java, Python or Lua inspires a range of languages with a similar syntax, but different semantics. Like how JavaScript was supposed to look like Java, but to be adopted to a browser environment. Edit: C# may be a more accurate example, or how Godot Script and Bend look like Python.

    I’d say the language family that has the most uniform syntax is shell scripting languages. They have mostly been standardized by POSIX and features are often being copied to make the shell more familiar and interoperable.