diku-dk / futhark-website

Git repository containing the Futhark website.
https://futhark-lang.org
Other
10 stars 13 forks source link

Tuples and Records page is confusing in regards to 0/1 indexing #23

Closed spreadLink closed 3 years ago

spreadLink commented 3 years ago

Hey, I'm going through the Futhark Examples pages, and the one titled "tuples-and-records.fut" is giving conflicting information as to if tuples are 0 or 1 indexed. I remember from the design-mistakes blogpost that tuples at least used to be 1-indexed, but the page claims this is just like arrays (who are actually 0 indexed), and all examples that use projections show indexing by 0.

I'd submit a PR for it, but I'm unfortunately not sure which one is actually the way it is done now.

athas commented 3 years ago

Everything is 0-indexed now.

spreadLink commented 3 years ago

Okay, is it worth making a PR for it?

athas commented 3 years ago

Yes please! You're apparently better at spotting these than I am.

spreadLink commented 3 years ago

Done #24