jamiebuilds / ghost-lang

:ghost: A friendly little language for you and me.
302 stars 10 forks source link

Arrays vs lists #2

Closed aleclarson closed 6 years ago

aleclarson commented 6 years ago

Can you specify the main differences (in ghost) between arrays and lists?

jamiebuilds commented 6 years ago

It's just linked lists vs fixed length arrays. They have entirely different performance characteristics. The syntax is stolen from F#

aleclarson commented 6 years ago

Please expand on them more in the readme when you feel like it. For example, push/pop the array and access its length.

jamiebuilds commented 6 years ago

I have several more documents that I've been working on including a stdlib which would also expand upon the Array and List interfaces.