jamiebuilds / ghost-lang

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

Language Semantics #24

Closed josegomezr closed 6 years ago

josegomezr commented 6 years ago

Hey there, awesome spec, It's really simple, but I've some questions about semantics (or should it be called hues?).

What's the difference between List and Array

Aside from syntax, what makes a list a list, and an array an array. An array doesn't have comprehension as list does? Does lists have negative indexes?

What's the difference between Record and Map

Aside from syntax, what makes a record a record, and a map a map. Does maps behave like python's dict? Does records behave like pythons namedtuples?

aleclarson commented 6 years ago

See this comment.

I assume that Records/Maps will be included.