Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

The second one makes more sense to me. My brain reads it as:

  for a in [1, 2, 3]:
    for b in [4, 5, 6]:


I don't because the statement itself flips compared to for style, so it seems like the whole thing should flip. i.e.

    for XXXXX:
      for YYYYY:
        ZZZZZ
it would kind-of make sense to me if this translated into a for comprehension as

    [ZZZZZ for YYYYY for XXXXX]
but instead it translates to

    [ZZZZZ for XXXXX for YYYYY]
which seems decidedly middle-endian.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: