Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Language specification #90

Open
Idorobots opened this issue Mar 11, 2021 · 5 comments
Open

Language specification #90

Idorobots opened this issue Mar 11, 2021 · 5 comments
Labels

Comments

@Idorobots
Copy link
Owner

At this point it would be a pretty good idea to define what this language actually supports and how it looks.

@Idorobots
Copy link
Owner Author

Should defs be allowed at any position? Should these evaluate to the value? Should these be lifted into the closest enclosing scope?

@Idorobots
Copy link
Owner Author

Idorobots commented Apr 21, 2021

Related: #120 #121
Also #91 #145

@Idorobots
Copy link
Owner Author

Idorobots commented Apr 21, 2021

Should booleans have dedicated values or should we just wing it and use nil. She'll be 'aight.

@Idorobots
Copy link
Owner Author

@Idorobots
Copy link
Owner Author

Idorobots commented Dec 15, 2023

Consider the following:

  • Dedicated boolean values for "true" & "false" (as opposed to anything and "nil" currently) simplify the implementation of primops in different languages.
  • Better pattern matching can be used to not to have to have boolean values in the first place.
  • Disallow improper lists. Given that arrays arewill be available as basic building blocks with low overhead (and at that support more than two slots) this should only simplify generating code for languages with a notion of collections.
  • Disallow vararg functions. With arrays self-evaluating it shouldn't be too inconvenient. Given pattern matching it should actually be pretty OK. ™️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant