racket / rhombus

Rhombus programming language
Other
332 stars 59 forks source link

add `MutableList` #501

Closed mflatt closed 4 months ago

mflatt commented 4 months ago

I don't think there are any surprises here: MutableList is distinct from List, and it reflects the racket/mutable-list interface. A mutable list is indexable and listable, and it supports updating with [] and := like an array. The annotation constructors are MutableList.now_of and MutableList.later_of like the ones for Array.

usaoc commented 4 months ago

The errors need to be thrown as 'racket/primitive.