Hacker News new | past | comments | ask | show | jobs | submit login

What do you mean by "bad"; what calculation do you intend to label that way?

In the sequence 0, 4, 8, 12, 16 the deltas are equal, and consistent with the size of an int in bytes.

It looks bad when we don't know it's pointer math, and/or are not aware that the syntax we used doesn't index into the array; if we know these things, it is unsurprising.

Now if you got the Fibonacci sequence, that would be astonishing! :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: