4 ms·
>Honestly it doesn’t feel too different to javascript. ...that would be because Javascript was developed by people who wrote C/C++ :) Netscape was written mos
by warrenm 4y ago
>Honestly it doesn’t feel too different to javascript.
...that would be because Javascript was developed by people who wrote C/C++ :)
Netscape was written mostly in C++ back in the 90s because it was the Language of Choice™
So the devs that worked on Javascript borrowed a lot from C++ in terms of syntax, structure, etc
Likewise, Java looks a lot like C++ because the folks at Sun were writing in C and C++ for the SunOS/Solaris operating system, and all the Unix utilities that supported it
And C++ looks a lot like C because Bjourne Stroustrop started with C, and added-on
And C looks a lot like B because they started with B and made something new/better
PHP looks a lot like C/C++ (and perl), too ... because they started with those as inspirations
"New" languages tend to "look like" the languages the designers/developers already use :)
- pjmlp 4y agoNetscape was written in C, and almost died during the effort to port it to C++ on Netscape 4.0. https://gigamonkeys.wordpress.com/2009/09/28/a-tale-of-two-rewrites/ https://gigamonkeys.wordpress.com/2009/09/28/a-tale-of-two-r... Java semantics were inspired by the folks at Sun using Smalltalk, SELF, OpenSTEP and Objective-C. The C++ like syntax was to make it more attractive for adoption. https://cs.gmu.edu/~sean/stuff/java-objc.html https://cs.gmu.edu/~sean/stuff/java-objc.html https://www.strongtalk.org/ https://www.strongtalk.org/
- warrenm 4y agoYou're right ... I usually lump C & C++ for conversational purposes .. but they are different languages :)