TDPL notes, part 1

Tim Verweij tjverweij at gmail.com
Thu Jul 15 03:13:27 PDT 2010


On 14 July 2010 14:28, bearophile <bearophileHUGS at lycos.com> wrote:

> (...)
> P 10:
> In this line of code:
> while (!input.empty) {
> There is not so much need of using an external function plus a negation:
> while (input.length) {
> (...)
>

I like writing:
  while (!input.empty) {
To me, it better shows the meaning of the condition.

Groet,
Tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20100715/0560e50e/attachment.html>


More information about the Digitalmars-d mailing list