Remix.run Logo
▲ flossly 4 hours ago

> I want regular OOP

Why would you want that? Just to continue the habit? I'd say regular OOP is, after implicit `null`, the biggest mistake in software.

Crystal is nice, but for network programming, Go simply cannot be beaten by a language that has a equally limited type system.

▲zerr 4 hours ago | parent | next [-]

Isn't Crystal significantly more expressive than Golang?

▲giancarlostoro 2 hours ago | parent | prev | next [-]

I get the hesitation from people used to C# or Java where OOP has always been the law of the land, but the rest of us who have used D, C++ or Python... to name a few... OOP is fully optional, and that's how I want OOP in any language, give me multi-paradigm any day of the week.

I would have loved Go more if they had made "lightweight" classes a thing, something feels wrong tying structs and functions, you could have added a wrapper around both to make the code more organized. I guess that's what I like about OOP, organized code. I don't even care about most OOP things, I just want to organize code in a meaningful way.

▲goatlover 4 hours ago | parent | prev | next [-]

Opinions vary on OOP being a mistake. Most likely people with that opinion are responding to the influence of Java's popularity in the past. Or the confusion with how Javascript was prototype-based but with Java-like syntax and then it got classes for further sugar coating.

I don't think anyone who regularly uses Ruby or Python thinks OOP is a mistake, it's in how you use it and whether one likes the OOP design of the language.

▲sroerick 3 hours ago | parent [-]

I think that OOP, like Lisp, lost a lot when Smalltalk machines went out of vogue. Ruby is a super cool language but doesn't have the same breadth as a OOP-as-OS system.

I think the Lisps kind of have up on being an interpreter and I feel they lost some of their power because of it.

I kind of see Ruby waning right now, I don't think it offers much with the development of LLMs. I don't think adding typing is the key - but I anticipate there will be a kind of LLM-powered Smalltalk resurgence

▲pjmlp 2 hours ago | parent [-]

You get "OOP-as-OS system" on Apple, Google and Windows platforms, to various levels of approximations.

With Objective-C/Swift, Java/Kotlin, .NET/C++/COM userspaces.

▲ 2 hours ago | parent | prev [-]
[deleted]