Thread 105639909 - /g/ [Archived: 879 hours ago]

Anonymous
6/19/2025, 1:21:38 PM No.105639909
1748780809834646
1748780809834646
md5: 8ff9baf341569b55374decb959f8b65e🔍
>my favorite keyword in C++ is "auto"
What type of person do you imagine?
Replies: >>105639956 >>105639965 >>105640159 >>105641287 >>105641481 >>105641955 >>105643187 >>105643270 >>105643850 >>105643881 >>105647968 >>105648095
Anonymous
6/19/2025, 1:25:56 PM No.105639938
>int main
ngmi
auto main() -> int {}
Replies: >>105640003 >>105641292 >>105645492
Anonymous
6/19/2025, 1:27:17 PM No.105639943
i dont use goyplusplus
Anonymous
6/19/2025, 1:29:07 PM No.105639956
>>105639909 (OP)
I can see the value when it comes to strange pointer return types, like nested pointers and function pointers
Replies: >>105640114 >>105640132
Anonymous
6/19/2025, 1:31:26 PM No.105639965
>>105639909 (OP)
people laugh at JS, but C++ is just as comically bad
Replies: >>105641299 >>105649208
Anonymous
6/19/2025, 1:32:05 PM No.105639971
I try not to imagine people.
Replies: >>105639999 >>105643843
Anonymous
6/19/2025, 1:36:28 PM No.105639999
>>105639971
Not even when you're fapping?
Replies: >>105640002 >>105641126 >>105641464
Anonymous
6/19/2025, 1:37:36 PM No.105640002
>>105639999
Okay but not C++ programmers. Yet.
Anonymous
6/19/2025, 1:37:37 PM No.105640003
>>105639938
Yuck!
Anonymous
6/19/2025, 1:57:34 PM No.105640114
>>105639956
i only use it for the autistic iterator return types from the stdlib.
Replies: >>105640132 >>105641269 >>105641280
Anonymous
6/19/2025, 2:00:10 PM No.105640132
>>105640114
>>105639956
There are lambda types that aren't nameable.
Replies: >>105641310
Anonymous
6/19/2025, 2:04:35 PM No.105640159
>>105639909 (OP)
>What type of person do you imagine?
i imagine someone that looks like sam bankman huffing and puffing, mouth breathing, sweaty and smells bad.
Anonymous
6/19/2025, 4:30:59 PM No.105641099
in Rust this is just "let"
Replies: >>105642220
Anonymous
6/19/2025, 4:34:42 PM No.105641126
>>105639999
linoleum tiles are the best for that
Replies: >>105648077
Anonymous
6/19/2025, 4:56:01 PM No.105641269
1546428603835
1546428603835
md5: 96af8721afa1b2ea23ce18f85d54b207🔍
>>105640114
>she's still using iterators
Replies: >>105641279
Anonymous
6/19/2025, 4:57:51 PM No.105641279
>>105641269
what are you supposed to use?
Replies: >>105641311
Anonymous
6/19/2025, 4:58:13 PM No.105641280
>>105640114
Oh yeah, this.
Anonymous
6/19/2025, 4:59:02 PM No.105641287
>>105639909 (OP)
the same kind of retard who uses functors as his default way of declaring functions.
Anonymous
6/19/2025, 4:59:38 PM No.105641292
>>105639938
extremely based. fpbp.
Anonymous
6/19/2025, 5:00:25 PM No.105641299
>>105639965
Javascript's ducktyping and weird implicit casting rules are way worse than C++. They're both bad though, yeah.
Anonymous
6/19/2025, 5:01:56 PM No.105641310
>>105640132
they can be stored in a std::function though
Replies: >>105641349 >>105647182
Anonymous
6/19/2025, 5:02:04 PM No.105641311
>>105641279
ranges is a good start
what it gods name do you even NEED iterators for?
Replies: >>105641894
Anonymous
6/19/2025, 5:06:50 PM No.105641349
>>105641310
Yeah, but the type is still unnameable. You either have to use template or auto.
Anonymous
6/19/2025, 5:07:37 PM No.105641358
Gay retard javascript+python pajeet
Anonymous
6/19/2025, 5:20:55 PM No.105641464
>>105639999
What do you think all the monitors are for?
Checked.
Anonymous
6/19/2025, 5:22:51 PM No.105641481
jae4xzacv0ob1
jae4xzacv0ob1
md5: d3435042f75eb07267e1ca573d629f84🔍
>>105639909 (OP)
>What type of person do you imagine?
carbrain
Babyduck
6/19/2025, 6:16:12 PM No.105641894
Screenshot_20250619-121037
Screenshot_20250619-121037
md5: 951db05e5ada38fc0b77e90632763c1c🔍
>>105641311
It still looks bad compared withresult = vec & filter even & map ("2) & take 3
Replies: >>105641999 >>105642661 >>105644183 >>105646180 >>105646498 >>105649170
Anonymous
6/19/2025, 6:23:47 PM No.105641955
>>105639909 (OP)
Auto means a different thing for C (not in C23), but if those retards at the committee purposely change a keyword's semantic then why we still using _Atomic instead of "atomic"?
Replies: >>105642615 >>105642787
Anonymous
6/19/2025, 6:28:54 PM No.105641999
>>105641894
its not perfect, but still a massive improvement to iterators or god forbid "classic" C++
the shift towards more functional programming in C++ is highly erotic and retards lagging behind not using it will be obsolete
99% of what rust sells itself to be is already available in modern C++, you cannot convince me otherwise
Replies: >>105642154
Anonymous
6/19/2025, 6:49:08 PM No.105642154
>>105641999
>99% of what rust sells itself to be is already available in modern C++
lol
Anonymous
6/19/2025, 6:57:24 PM No.105642220
>>105641099
Rust should allow type omission in the function signature like C++ does, especially for the return type.
Replies: >>105642231
Anonymous
6/19/2025, 6:58:11 PM No.105642231
>>105642220
that sounds awful
Anonymous
6/19/2025, 7:35:00 PM No.105642513
>java(script) is... le bad!
>anyway here's c++69420 it's basically indistuinguishable from java(script) - and that's a good thing!
Anonymous
6/19/2025, 7:48:10 PM No.105642615
>>105641955
> change keyword meaning
They re-used auto because they didn’t know how to change the yacc or lex files.
But yeah, pretty embarrassing.
Also, auto itself is ass, you don’t know what type the fucking variable is half the time, like when you come back to the code. Other languages have the same problem, like Go.
Some of the more complex types I *never* knew the actual type, no idea what methods or public variables were.
Someone should make a ‘style’ ‘tidy’ or ‘fmt’ for C++ that replaces all the autos with their actual type.
Replies: >>105643069 >>105648316
Anonymous
6/19/2025, 7:53:40 PM No.105642661
9D2BB78D-9372-41D0-B3AD-BE687FB424F2
9D2BB78D-9372-41D0-B3AD-BE687FB424F2
md5: 899bc0932224b2665657c79e4c17c3e2🔍
>>105641894
> vector
Bwahahahaa..
You’re supposed to be using “generators” now!

Our services staff rewrote all their python (the only thing they’re allowed to touch) to use generators and made the code 10 times bigger.
Replies: >>105642739
Anonymous
6/19/2025, 8:01:09 PM No.105642739
>>105642661
>Our services staff rewrote all their python (the only thing they’re allowed to touch) to use generators
....huh? what does this have to do with C++?
Anonymous
6/19/2025, 8:05:43 PM No.105642787
>>105641955
You can't add new keywords willy-nilly as it will break existing code. In the case of auto, you already had a useless keyword right there to reuse.
Replies: >>105643093 >>105647938
Anonymous
6/19/2025, 8:31:50 PM No.105643069
clangd
clangd
md5: 620f5651bd71896d930ea9882725d331🔍
>>105642615
Clangd can tell you the types.
Anonymous
6/19/2025, 8:34:28 PM No.105643093
>>105642787
Backwards compatibility sucks and at some point they will need to break the language, and it's ok.
Replies: >>105643156 >>105646444
Anonymous
6/19/2025, 8:41:31 PM No.105643156
>>105643093
Stealing basic words to replace with keywords is really disruptive. What if that word is the field name of widely used structure. The amount of code needing to be updated would be immense.
Replies: >>105643537
Anonymous
6/19/2025, 8:44:56 PM No.105643187
>>105639909 (OP)
C++ and Haskell are strangely enough very similar: they both came from an academic background where their designers were too busy adding new features to think whether it was a good choice for the language.
Anonymous
6/19/2025, 8:53:21 PM No.105643270
1747303724607176
1747303724607176
md5: 8eb765552d88f8a9ac95b84417c40bcc🔍
>>105639909 (OP)
#define var auto
#define let const auto
Replies: >>105645504 >>105649195
Anonymous
6/19/2025, 9:25:11 PM No.105643537
>>105643156
Who cares? the operator precedence order was never fixed and now you have much more code and year after year you will have more C code out there, not addressing these issues will cause a mayor pain in the future.
Replies: >>105643572
Anonymous
6/19/2025, 9:28:27 PM No.105643572
>>105643537
The C philosophy is don't fix anything and then say you can't fix it once at least one line of code depends on it. B was only used by the 2 people who made it and they were already complaining about not being able to fix strings or arrays in C because of "backwards compatibility."
Anonymous
6/19/2025, 9:57:45 PM No.105643843
>>105639971
Living life in peace?
Anonymous
6/19/2025, 9:58:26 PM No.105643850
>>105639909 (OP)
I use auto for function parameters too
Anonymous
6/19/2025, 10:00:52 PM No.105643881
>>105639909 (OP)
Myself. The only things I like more than auto are auto&& and constexpr auto.
Anonymous
6/19/2025, 10:31:01 PM No.105644183
>>105641894
last time I checked ranges add 3-5s to compilation you are better off using a third party library. In fact anything past c++17 adds ~4s
Replies: >>105645412
sage
6/20/2025, 12:39:35 AM No.105645412
>>105644183
oh no 3-5s compilation time per unit that uses ranges
pro tip; if youre using ranges in every of your units you're probably doing something very very wrong
Replies: >>105649116
Anonymous
6/20/2025, 12:49:06 AM No.105645492
>>105639938
make it stop
Anonymous
6/20/2025, 12:50:07 AM No.105645504
>>105643270
Based.
Anonymous
6/20/2025, 2:24:26 AM No.105646180
>>105641894
>DUDE FUNCTIONAL PROGRAMMING
is this 2015
Anonymous
6/20/2025, 2:26:20 AM No.105646190
1647030918571
1647030918571
md5: f79366f54f744f028e62c3ec37123a16🔍
>std::
>std::
>std::
>std::
>std::
>std::
>std::
Replies: >>105646453 >>105647045
Anonymous
6/20/2025, 2:59:01 AM No.105646398
itt bad programmers whine about trivialities
Anonymous
6/20/2025, 3:06:58 AM No.105646444
>>105643093
Sutter is already on it.
Anonymous
6/20/2025, 3:08:17 AM No.105646453
>>105646190
using namespace std;
problem solved
Replies: >>105647071
Anonymous
6/20/2025, 3:14:54 AM No.105646498
>>105641894
Is there even a point in learning c++. 10 years ago i thought I had a good grasp of the stdl but every time c++ is brought up there is a new feature I had no clue existed
Replies: >>105647230
Anonymous
6/20/2025, 4:31:10 AM No.105647045
>>105646190
this is even uglies than rust
Anonymous
6/20/2025, 4:33:48 AM No.105647071
>>105646453
namespaces are gay my dude
Anonymous
6/20/2025, 4:47:56 AM No.105647182
>>105641310
And how do you think std::function is implemented? Do you think retarded template type deduction is more ergonomic than auto?
Anonymous
6/20/2025, 4:53:28 AM No.105647230
>>105646498
I honestly do not see the point unless you need it for work. The language seems intent on torturing itself into insanity and complete illegibility. Learn a language that is actually fun to write in while waiting for AI to replace handwritten code entirely.
Anonymous
6/20/2025, 6:30:46 AM No.105647938
>>105642787
c++ has some contextual keywords known as soft keywords elsewhere. auto auto could have been.
Anonymous
6/20/2025, 6:36:36 AM No.105647968
>>105639909 (OP)
I don’t assume at first. I wait and see how others expect him to act and determine his type that way.
Anonymous
6/20/2025, 6:55:31 AM No.105648077
>>105641126
Kek
Somebody share the image please.
Anonymous
6/20/2025, 6:59:17 AM No.105648095
1740631392043684
1740631392043684
md5: 28360a2c0719caebb1cab7e46bf7a86c🔍
>>105639909 (OP)
A professional C++ programmer. Usually they are quite intelligent, but it's a broad category.
Anonymous
6/20/2025, 7:39:15 AM No.105648316
>>105642615
You don't need to know the name of a type. It gives you no actionable information by itself.
Anonymous
6/20/2025, 9:41:44 AM No.105649116
>>105645412
its not per unit. Its the c++20 flag thats the problem because of ranges the headers all doubled or tripled which adds more time. Like I said its all feature flags beyond c++14 that add a couple seconds which makes using the std lib painful.
Anonymous
6/20/2025, 9:48:12 AM No.105649170
>>105641894
With operator overload and C++20 concepts you can have all that syntax candy you want and in the way you believe is better. Very handy for advent of code and personal projects.
Anonymous
6/20/2025, 9:51:34 AM No.105649195
>>105643270
Nice, but there is a template meta programming scenario where you need to write auto const because const auto doesn't work.
Anonymous
6/20/2025, 9:53:40 AM No.105649208
>>105639965
Skill issue, JS and C++ are the best languages.