5 ms·
There are two types of modern programming languages: those that look like C and those that look like Python.
by varjag 4y ago
There are two types of modern programming languages: those that look like C and those that look like Python.
- lkschubert8 4y ago+ Those that look like ruby?
- quickthrower2 4y agoRuby looks like Python
- sph 4y ago(concat '(c python) lisp-derived-languages) Also add Forth, Prolog, Brainfuck, Haskell/ML and Ruby. There's more to programming than you think.
- varjag 4y agoI meant the syntax of novelty languages we have on HN regularly. And Ruby is Python-mimicry open your eyes.
- segfaltnh 4y agoDidn't ruby and python both get created in the same year...?
- cristoperb 4y agoPython 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 https://ruby-doc.org/docs/ruby-doc-bundle/FAQ/FAQ.html
- chaxor 4y ago"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.
- tmtvl 4y agoDon't forget APL.
- varjag 4y agoRight, because we see so many APL derived languages lately.
- pjmlp 4y agoYou forgot those that look like Pascal and those that look like ML.
- varjag 4y agoHadn't seen := in a new language in a while tho.
- poo-yie 4y agogo has it. it's not brand new, but relatively new.
- pjmlp 4y agoWalrus operator in Python.
- qwertfisch 3y agoExcept 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 …
- dw-im-here 4y agoYou mean there are two modern programming languages which you know
- varjag 4y agoRead what I say, not what you mean.
- dym_sh 4y agosomeone discovered whitespace significance but doesnt know how to call it yet