this post was submitted on 07 Jan 2025
17 points (100.0% liked)

Programming

13425 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 2 years ago
MODERATORS
 

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

you are viewing a single comment's thread
view the rest of the comments
[–] bricked@feddit.org 5 points 2 weeks ago* (last edited 1 week ago) (1 children)

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@fedia.io 3 points 2 weeks ago (1 children)

@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 1 points 1 week ago

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