Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There are two types of modern programming languages: those that look like C and those that look like Python.


(concat '(c python) lisp-derived-languages)

Also add Forth, Prolog, Brainfuck, Haskell/ML and Ruby. There's more to programming than you think.


Don't forget APL.


Right, because we see so many APL derived languages lately.


I meant the syntax of novelty languages we have on HN regularly.

And Ruby is Python-mimicry open your eyes.


Didn't ruby and python both get created in the same year...?


Python was released earlier than Ruby (1991 vs 1993/1995), and Matz was familiar with it. But Ruby is clearly an attempt at an object-oriented Perl rather than a Python mimic:

> I knew Python then. But I didn't like it, because I didn't think it was a true object-oriented language---OO features appeared to be add-on to the language. As a language manic and OO fan for 15 years, I really wanted a genuine object-oriented, easy-to-use scripting language. I looked for, but couldn't find one.

https://ruby-doc.org/docs/ruby-doc-bundle/FAQ/FAQ.html


"OO features appeared to be add-on"

No one tell them about the horrors of R. That's a 'yikes' of a language that no one should ever use.


You mean there are two modern programming languages which you know


Read what I say, not what you mean.


+ Those that look like ruby?


Ruby looks like Python


It does not. No language with statements is like Ruby.


If anything, Ruby looks like Smalltalk without image file.


You forgot those that look like Pascal and those that look like ML.


Hadn't seen := in a new language in a while tho.


Walrus operator in Python.


Except that the walrus operator “:=” is an assignment expression, whereas in Pascal it is an assignment statement, like “=” in many languages. In Pascal, the boolean comparison operator is “=” instead of “==” (in the same many languages).

And there is C where the assignment expression is just “=”, there is no assignment statement, and many forgotten double equals led to bugs …


go has it. it's not brand new, but relatively new.


someone discovered whitespace significance but doesnt know how to call it yet




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: