Mihail
C does have OOP, but its hacky
If you implement it yourself it does
Mihail
Otherwise kinda no
Mihail
btw check PM
Nomid Íkorni-Sciurus
Uhm... lambda ?
you could create a Lambda structure and give it an apply function pointer
olli
Language lawyer, let's find the line in our book of law.
n1570 - 6.9.1 On entry to the function, the size expressions of each variably modified parameter are evaluated and the value of each argument expression is converted to the type of the corresponding parameter as if by assignment. (Array expressions and function designators as arguments were converted to pointers before the call.)
Raul
good ol std::apply
BinaryByter
in C, that works well enough
BinaryByter
Sure you don't have variable capture
Ибраги́м
oop in C++ is very old
oop is old oop in C++ is very old oop in C is very... uhm... what are we saying again?
Nomid Íkorni-Sciurus
oop is old
oop is quite the way you think when programming. structs are objects and working on structs quite make oop
BinaryByter
oop is quite the way you think when programming. structs are objects and working on structs quite make oop
>oop is quite the way you think when programming. you could be the guy who inventend acpi or smbios
BinaryByter
Daniele°
Perl6 is new language and have new oop
Ибраги́м
Rust is new language, and not have oop
@ollirz how do we laugh @ this? CC: @BinaryByter
Ибраги́м
😶
/slap
BinaryByter
@ollirz how do we laugh @ this? CC: @BinaryByter
We don't laugh at this... this is too sad to laugh at
BinaryByter
++ :D
finally something olli and I agree on
BinaryByter
i love you, olli
Ибраги́м
++ :D
std::tears
BinaryByter
Take my tears
for cooking rice?
BinaryByter
std::tears
FUCK YOU
BinaryByter
😂
Daniele°
@ollirz how do we laugh @ this? CC: @BinaryByter
https://doc.rust-lang.org/book/ch17-00-oop.html
BinaryByter
https://doc.rust-lang.org/book/ch17-00-oop.html
why are you disproving yourself?
Nomid Íkorni-Sciurus
>oop is quite the way you think when programming. you could be the guy who inventend acpi or smbios
lol ahaha though I find OOP intuitive enough. I have found that thinking about what is what, is easier than to think about what it behaves like first. I mean you don't describe a car by saying "it's a thing that runs on 4 wheels"
Daniele°
why are you disproving yourself?
some definitions would classify Rust as object oriented, but other definitions would not. 
Ибраги́м
https://doc.rust-lang.org/book/ch17-00-oop.html
Concepts killed Rust, I'm waiting on reflection to nail the coffin. U can't make another C++ and call it another name.
Daniele°
Not have class
BinaryByter
No
https://stackoverflow.com/questions/17304897/objects-and-classes-in-rust#17305076
BinaryByter
https://stevedonovan.github.io/rust-gentle-intro/object-orientation.html
BinaryByter
just because you don'T call it a class doesnt mean that its not one
Ибраги́м
Rust is new language, and not have oop
If u actually need something that helps sanity, try D. http://dlang.org
Nomid Íkorni-Sciurus
OOP is more useful as a set of structures than as a set of functions. Having multiple variables reduced into one reduces code bloat
I agree. This is what I'm learning at work, and by luck with functional programming. Structures are not just raw values, they represent the result of an operation (for example the Maybe monad). Maybe I'm mixing the definitions, I'm still a beginner with these concepts.
Ибраги́м
Isn't class, is a special struct
In C++ Yes, but actually NO. Class => Members Private by default Struct => Members are Public by default
Daniele°
Does it have classes and inheritance?
In Rust, there is no concept of "inheriting" the properties of a struct. Instead, when you are designing the relationship between objects do it in a way that one's functionality is defined by an interface (a trait in Rust).
BinaryByter
In C++ Yes, but actually NO. Class => Members Private by default Struct => Members are Public by default
technically they are different, but the difference is so subtle that I think that its almost safe to use them interchangeably
Nomid Íkorni-Sciurus
I mean structs in C don't inherit anything but sure are objects you can work with, which gives you oop
Nomid Íkorni-Sciurus
Oh hi nomid
Oh, hello Klimi!
Daniele°
Same perl6 change concept of inhering. Now call it role, and try to solve C++ inhering problems
Ибраги́м
Daniele°
What problem sire.
Try to use in a big project
BinaryByter
Try to use in a big project
Dude, have you ever used perl?
BinaryByter
😂
Daniele°
Perl6 is fantastic language
BinaryByter
i doubt that
BinaryByter
Perl6 is fantastic language
phantastically slow :)
Daniele°
BinaryByter
https://blog.famzah.net/2016/02/09/cpp-vs-python-vs-perl-vs-php-performance-benchmark-2016/
BinaryByter
2149% slower than C++
Daniele°
perl6 can run with jvm
Daniele°
And now exists rperl
Ибраги́м
Ибраги́м
Add KDE district