Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

list #106

Open
avelino opened this issue Feb 6, 2018 · 1 comment
Open

list #106

avelino opened this issue Feb 6, 2018 · 1 comment

Comments

@avelino
Copy link
Member

avelino commented Feb 6, 2018

To avoid using the interface empty we will have a function at the runtime called List

@crgimenes
Copy link
Contributor

today to make an array we need to do:
(array ("a" "b"))
an empty array looks like this:
(array ())

I propose to remove the word "array" and use the parser to identify if the first item in a list is a function (or lambda) then the other items are parameters of that function otherwise the parser treats as an array/list and simply return it.

examples:
("a" "b")
empty array/list:
()

I believe this way it gets more lisp like
As an option we can keep the word "array" for when we want the parser to return a list and do not interpret functions.

@avelino avelino changed the title array/list list Feb 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

2 participants