C++ From Scratch: std::move

  Рет қаралды 6,883

Nick

Nick

Күн бұрын

Пікірлер: 13
@simonadams5626
@simonadams5626 6 ай бұрын
Thank you! A very clear, concise and jargon-free explanation.
@anon_y_mousse
@anon_y_mousse 2 жыл бұрын
I don't know if anyone else would agree, but I think if they had better defined some of the rules they could've avoided even needing std::move. A lot of both C and C++ strikes me as being weakly thought out. Almost as if the standards committees either had no real world experience or forgot whatever they did have. Not that I'm saying there's a perfect language, and in fact C and C++ are both still the best languages to use for general purposes. But that particular aspect I dislike vehemently and it seems as if a few more recent languages have copied it. Anyhow, that's just my own personal musing, feel free to disagree.
@NotesByNick
@NotesByNick 2 жыл бұрын
I'd say just the fact that move semantics is still so widely misunderstood would indicate that there is a problem with the standard. I think destructive moves are an interesting and intuitive alternative, but haven't honestly given it too much thought. Cheers, --Nick
@filipj4377
@filipj4377 Жыл бұрын
Can you be more specific? You're super welcome to suggest a better design instead of saying it's bad in general
@anon_y_mousse
@anon_y_mousse Жыл бұрын
@@filipj4377 I doubt anyone from the committee would take any of my suggestions, and they aren't likely to see any of these posts, but Nick offered up one possible change that would be better. However, this is one case where I'd actually suggest extra syntax. Even something as simple as
@yoavmor9002
@yoavmor9002 9 ай бұрын
@@anon_y_mousse Isn't
@anon_y_mousse
@anon_y_mousse 9 ай бұрын
@@yoavmor9002 You're right. What I was thinking of wouldn't work in standard C++ because statements that are bare comparisons aren't treated differently to their usage in conditionals. Even something like `int foo = 0, bar = 0; foo
@rexseppe7084
@rexseppe7084 Жыл бұрын
Thanks for explaining!
@NotesByNick
@NotesByNick Жыл бұрын
Glad you enjoyed it! :^)
@toxic_champ
@toxic_champ 5 ай бұрын
stood move LMAO XDD
@travelan
@travelan Жыл бұрын
I couldn't get through the video because 'std' does not stand for 'stud'. Either say S-T-D or 'standard'...
@8Trails50
@8Trails50 Жыл бұрын
pretty lame reason to not get through the video
@toxic_champ
@toxic_champ 5 ай бұрын
@@8Trails50 no, its not
C++ From Scratch: Move Constructors
9:28
Nick
Рет қаралды 3 М.
C++ From Scratch: std::mutex
10:33
Nick
Рет қаралды 7 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
C++ Weekly - Ep 404 - How (and Why) To Write Code That Avoids std::move
8:50
C++ Weekly With Jason Turner
Рет қаралды 34 М.
I made Tetris in C, this is what I learned
15:15
Austin Larsen
Рет қаралды 25 М.
C++ From Scratch: std::atomic
10:56
Nick
Рет қаралды 11 М.
Re-inventing move semantics in modern C++ in 13 minutes
13:20
Code for yourself
Рет қаралды 7 М.
C++ From Scratch: push_back vs. emplace_back
9:40
Nick
Рет қаралды 4,5 М.
unique_ptr: C++'s simplest smart pointer
11:54
mCoding
Рет қаралды 47 М.
C++11 Perfect Forwarding
17:24
oneproduct
Рет қаралды 19 М.
lvalues and rvalues in C++
14:13
The Cherno
Рет қаралды 330 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН