3 ms·
> void popFront() => ++index; So in D, `popFront()` not only returns... nothing (void) but then returns... an index? No wonder nobody uses this language.
by hota_mazi 4y ago
> void popFront() => ++index;
So in D, `popFront()` not only returns... nothing (void) but then returns... an index?
No wonder nobody uses this language.
- WalterBright 4y agoI made a mistake. It actually won't allow that. You'd have to write it as: void popFront() { ++index; } Thanks for pointing it out.