can:while( auto x = get() ) stuff(x);can't:while( !(auto x = get()) ) stuff(x);
someone write a proposal ToT
#cpp
it's not for me it's for your eyes, cause the alternative is:while(true) if(auto x = get(); !x) stuff(x);else break;
CleverLibre Social is an inclusive social instance for open discussion, learning, and community. All cultures welcome. Hate speech and harassment strictly forbidden.