Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 1759

Tuple access by index (range)

$
0
0
  1. Destructuring is sugar. The compiler uses efficient access patterns instead of actual JS destructuring.

  2. Tuples are not arrays. They are essentially records without labels, structs with a known layout. Random access is not possible. It’s the same restriction as not being able to use string keys for record fields.


Viewing all articles
Browse latest Browse all 1759

Trending Articles