‹ BackHN Continuity

Thread

Goose Programming Language

54 points · 69 comments · bobbydigitales

  1. RantyDave · · focus · HN ↗
    So if nothing moves, you can't make an array that grows?
    1. codys · · focus · HN ↗
      It appears they got around that by making expanding and contracting data arrays builtin types the compiler impls. And it does this by creating what they call a "data stack" for each thing that needs to grow. To me it reads like "we have a builtin type that hides the heap allocation and does the free at the scope exit ", which is fine I guess as it keeps the nature of the language in tying lifetimes strictly to function scopes.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.