Why would anyone use Go or Rust over C++?
>>60600394
Hobbyists.
Why the fuck was Go even made?
>>60600435
Because of "muh unix philosophy"
>>60600394
c++ is a disgusting mess tbqhwyf
>>60600473
Not like rust is any better when it comes to readability
>>60600394
The worst thing about C and C++ is trying to compile it on both Linux and windows.
I can't be bothered to write makefile shit or mess around with msys2.
It's my biggest reason for not using it.
Rust has Crates. Which just werks.
>>60600473
Is there really not a better way to write this, or is it really the languages fault?
>>60600597
it is a bit better. not THAT much but still
>>60600644
using namespace std for starters
:^)
>>60600473
Eventually C++ is just going to be nothing but special characters and parens.
>>60600435
Go is comfy :)
>>60600597
Yes rust is more readable
>>60600627
>too stupid for makefiles
Yeah it's better if you stay away from C++
>>60600435
CSP meme and locked it down so pajeets couldnt do crazy shit
>>60600435
To make large distributed systems easier
Go does not replace c++
>>60600627
I'm doing a hobby project for both windows / linux right now with CMake as the meta build system. It's pretty good.
>>60600973
>To make large distributed systems easier
Ironic, since Go is only good for making microservices.
>>60600473
what is this some STL code?
wtf I hate c++ now
>>60600473
What does this do?
>>60600999
returns a smart pointer to something
only scott meyers can decipher this
>>60600981
>>60600944
It's not that makefiles are hard. They're just such a fucking bother.
I just wanna write my code. Build systems kill my vibe, makes me not wanna write code.
For smaller projects I just include everything -including source files- into one file, and write single line .sh or .bat file for it
Don't even need to write headers anymore.
>>60601034
you called?
>>60600981
Cmake is great. Literally like 20 lines of cmake and I can generate any type of IDE project I want or just make it generate makefiles that are better than any I'd write.
>>60600473
>>60600597
>>60600644
>>60600730
>>60600990
>>60600999
Just pasting my reply from yesterday:
Your attempt at trolling fails horribly. You can leave out the trailing return type in C++14. You can leave out the template parameters in C++17 (they will be deduced automatically). Your piece of code becomes:template <typename Creator, typename Destructor, typename ...Arguments>
auto make_resource(Creator c, Destructor d, Arguments&&... args)
{
return std::unique_ptr(c(std::forward<Arguments>(args)...), d);
}
>>60600982
Not really, considering large distributed systems generally consist of microservices to promote reliability
>>60601066
>>60601119
Thanks Scott!
Are you gonna write another book?
>>60601119
Based Scott
>>60601119
>template
>Arguments&&
>std::forward
tfw you spot a universal reference because of based scott and brainlets in here don't even know how to make a raw pointer
>scott meyers browses /g/ to defend c++
>>60601119
C++ haters BTFO
>>60601240
Scott is muh waifu.
>>60601240
>>60601263
>>60601304
>>60601365
YOBA ETO TY
>>60601402
YOB TVOYU MAT
>>60600760
I've really come to enjoy Go; I really don't want to learn Java or relearn C++ to do application development..