top | item 44069706

(no title)

rrradical | 9 months ago

As a haskell programmer, all of that was easily readable.

discuss

order

sgarland|9 months ago

As a non-Haskell programmer, all of that was easily readable. Straightforward words for functions makes that pretty easy.

CamperBob2|9 months ago

As a C programmer, that's the worst FizzBuzz implementation ever. You're not supposed to special-case % 15, just

    bool m3 = !(i % 3);
    bool m5 = !(i % 5);
    if (m3) printf("Fizz");
    if (m5) printf("Buzz");
    if (m3 || m5) printf("\n");
You can turn in your visitor badge at the front desk, and they'll call you an Uber.

RHSeeger|9 months ago

There were a couple of places that took me a couple reads to figure out, like the fact that `(x:)` was "prepend". But overall, I followed the code pretty well. From the context of someone that wrote a small amount of Haskell a decade ago.

90s_dev|9 months ago

I honestly just skimmed the code and assumed it probably does what I would guess it does. It seemed to make sense and be straightforward... assuming my guesses were right, I guess?