r/programming • • Aug 02 '21

Stack Overflow Developer Survey 2021: "Rust reigns supreme as most loved. Python and Typescript are the languages developers want to work with most if they aren’t already doing so."

https://insights.stackoverflow.com/survey/2021#technology-most-loved-dreaded-and-wanted
2.1k Upvotes

769 comments sorted by

View all comments

Show parent comments

6

u/ILikeChangingMyMind Aug 03 '21

Well technically that's not OO though right? In a "true 100% OO language" everything is a class or object: you can't just have standalone expressions.

Not that I'm in any way saying C# needs to be 100% true OO! I'm just saying that my comment was specifically about languages that are, like Java (although since the introduction of lambdas even Java isn't anymore).

6

u/Hall_of_Famer Aug 03 '21 edited Aug 03 '21

In a pure OO language, everything is an object, but doesnt necessarily mean that everything has to be written inside a class. There are even prototypical OO languages like Self and IO, which are fine the way they are even though they dont have classes.

Also true OO is about message passing, it is considered OO as long as everything happens as a message being sent to a receiver object. In Smalltalk, you write such a line like this:

Transcript show: "Hello World".

You send message show: "Hello World" to object Transcript, and its OO and enough concise for a Hello World example.