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
5
edit-2
1M

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.

bluGill
link
fedilink
32M

@bricked@feddit.org javascript wasn’t written to be like java. Java was the big thing so some marketer found a way to attach java to the name

@ryujin470@fedia.io

@bricked@feddit.org
link
fedilink
Deutsch
11M

You’re right, it was a vad example. I added some other examples that might be more accurate, allthough less popular.

Create a post

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.

  • 1 user online
  • 2 users / day
  • 3 users / week
  • 19 users / month
  • 126 users / 6 months
  • 1 subscriber
  • 328 Posts
  • 2.31K Comments
  • Modlog