I mean…you can also use functions the same way you could in C. Classes aren’t in the language not because of functional purity, but because most systems programmers complained.
-
-
Replying to @pcwalton @matthew_d_green
In particular you can use structs of function pointers. I do it sometimes. But yeah, about classes, there were systems people who were ready to fork the language to remove them if they got added. (Not that they were seriously considered.)
1 reply 0 retweets 2 likes -
Replying to @pcwalton
And this is the problem. You can’t take something people are comfortable with and make it safe and performant, you have to cater to a lot of people’s other opinions.
1 reply 0 retweets 0 likes -
Replying to @matthew_d_green
I mean, we did. It’s just that that thing was more C than C++. (It’s funny, we get accused of being too C++-like probably more often. Kind of refreshing to hear criticism from the other direction, to be honest) :)
1 reply 0 retweets 3 likes -
Replying to @pcwalton
I represent the lazy contingent of people who want the existing feature set with the absolute minimum overlay of new features necessary to get memory/thread safety.
2 replies 0 retweets 1 like -
Replying to @matthew_d_green
Existing feature set of C++, not C? Because there are plenty of people who want that, but with C.
1 reply 0 retweets 1 like -
Replying to @pcwalton
Getting complex things done in C requires a pile of hacks. I don’t really want to do that because it’s ugly (jokes aside) but I’m familiar with the hacks. I don’t need all the crazy of C++ but classes would be good.
1 reply 0 retweets 2 likes -
Replying to @matthew_d_green @pcwalton
If getting the same thing in Rust requires a new pile of hacks, well that’s not so bad. I just don’t want to learn them.
1 reply 0 retweets 1 like -
Replying to @matthew_d_green @pcwalton
Let go of the old pile of hacks. Let a different approach change the way you think about the problem.
1 reply 0 retweets 0 likes -
You’re not helping to dispel the notion that Rust is a cult.
1 reply 0 retweets 1 like
Of all the criticisms I’ve heard of Rust not having OO, “the language is a cult” is the weirdest one yet.
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.