• lime!@feddit.nu
    link
    fedilink
    arrow-up
    10
    ·
    5 hours ago

    i think the most interesting design detail of lua tables is just glossed over as “nil-holes” in this article. namely, that nil values do not exist. there is no table.delete(key) method, you just zero out the value and the key stops existing. the same thing is true for any variable, if you set it to nil it ceases to be. i find that implementation fascinating.

  • puckpuckpuckow@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    5 hours ago

    Such a strange website. Pretty decent content, but just lying around as HTML/js/css files without a coherent layout to tie them all together? Reminds me of good ol’ internet.

    • matsdis@piefed.social
      link
      fedilink
      English
      arrow-up
      3
      ·
      40 minutes ago

      Yes, I like it. It makes only one (big) mistake: a horizontal table-of-contents. Nobody does that. You can put it on the left, or above the text, but… not like that.