← Home ← Back to /g/

Thread 106579191

13 posts 4 images /g/
Anonymous No.106579191 [Report] >>106579491 >>106580185 >>106581188 >>106581775 >>106582455 >>106583694 >>106585348 >>106585417
Monad in C++
But why?
Anonymous No.106579274 [Report]
If you have to ask, maybe it's not for you?
Anonymous No.106579491 [Report] >>106579514
>>106579191 (OP)
people will see this and still call rust ugly
Anonymous No.106579514 [Report]
>>106579491
they're both ugly
haskell GODS stay beautiful and get monads
Anonymous No.106580185 [Report]
>>106579191 (OP)
Because its C++. That language has everything and the kitchen sink. Not because it is a good idea, but because they can
Anonymous No.106581188 [Report] >>106581351
>>106579191 (OP)
I prefer xenoblade's monado
Haskell's is arguably an advanced obfuscation scheme designed to make you look smart but according to terry davis actually does the opposite since geniuses don't overcomplicate things in a way that's contrary to the design principles you must adhere to in order to properly optimize code
This is literally tails(C)vs eggman(haskell)
Anonymous No.106581351 [Report]
>>106581188
>This is literally tails(C)vs eggman(haskell)
based
Anonymous No.106581775 [Report]
>>106579191 (OP)
That's not a monad tho, that's static interface for a monad. Monad in C++ is just std::optional
Anonymous No.106581799 [Report]
For me it's C with GNU extensions. I don't know what monad is and I have never heard that word in professional conversation.
Anonymous No.106582455 [Report]
>>106579191 (OP)
why not
Anonymous No.106583694 [Report]
>>106579191 (OP)
Monads are EXTREMELY gay
Anonymous No.106585348 [Report]
>>106579191 (OP)
Rust dev here. I can't read this shit. What's wrong with you people? This is why I left cpp.
Anonymous No.106585417 [Report]
>>106579191 (OP)
FUCK std::function garbage ass cannot even to provide allocator template argument. Oh yes we are to be using the new operator and you have no control. Oh yes we are to be having different behaviors some std::function to have similar to small string optimization some std::function to use the heap but who know? There is no control. std::function TRASH c++ committee retarded.