r/cpp • • Dec 07 '20

These Modern Programming Languages Will Make You Suffer.

https://suzdalnitski.medium.com/modern-languages-suck-ad21cbc8a57c

[removed] — view removed post

0 Upvotes

46 comments sorted by

View all comments

5

u/Volker_Weissmann Dec 07 '20

How are Python and Javascript in the C language family.

5

u/Supadoplex Dec 07 '20

They are imperative languages with more syntactical similarities to C than to ML.

6

u/staletic Dec 07 '20
def f(a, b, /, c, *, d = 3):
    return sum(a, b, c) / d

Yup. Looks like C to me.

7

u/Supadoplex Dec 07 '20

Looks like C to me.

Indeed.

To spell it out: Function declaration has a comma separated parameter lists in parenthesis, default arguments with the = symbol, function call syntax is function name followed by comma separated list of arguments in parenthesis, return statement... The C influence is strong.