C++ Weekly - Ep 26 Language Features Removed in C++17

preview_player
Показать описание
☟☟ Awesome T-Shirts! Sponsors! Books! ☟☟

T-SHIRTS AVAILABLE!

WANT MORE JASON?

SUPPORT THE CHANNEL

GET INVOLVED

JASON'S BOOKS

► C++23 Best Practices

► C++ Best Practices

JASON'S PUZZLE BOOKS

► Object Lifetime Puzzlers Book 1

► Object Lifetime Puzzlers Book 2

► Object Lifetime Puzzlers Book 3

► Copy and Reference Puzzlers Book 1

► Copy and Reference Puzzlers Book 2

► Copy and Reference Puzzlers Book 3

► OpCode Puzzlers Book 1


RECOMMENDED BOOKS

AWESOME PROJECTS

O'Reilly VIDEOS

Рекомендации по теме
Комментарии
Автор

Incrementing a bool semantically makes no sense, it only makes sense in a language held back by C constructs. Bool should be bool, not a fancy int.

BigPapaMitchell
Автор

I do like the idea of making a true value even more true by incrementing it. It sort of reminds me of New Speak: that is double plus true, comrade!

GregoryTheGrster
Автор

You missed a golden opportunity to mourn the loss of the WTF operator (??!??!).

Qazqi
Автор

Why is register going to be removed? It was useful, when writing inline assembly like contextswitches, where the stack (where most variables are saved to, without explicit register keyword) is swapped.

cmdlp
Автор

The interesting point is that one cannot _decrement_ a bool.

zhenya
Автор

So, now there's no standard implementation for a random shuffle?

Forritouno
Автор

Increment of bool is a strange one, was it intentional to begin with? What was the purpose of it?

uzimonkey
Автор

It's more logical to negate a bool variable; incrementing doesn't make any sense as it can have only 2 states.

adaitabehera