Improve namespaces #4

Closed
opened 2023-12-14 01:21:36 +00:00 by kredati · 2 comments
kredati commented 2023-12-14 01:21:36 +00:00 (Migrated from github.com)

Now that use is in the language, namespaces should have more robust static checking. The way to do this is to try to ensure namespaces' names begin with capital letters (since datatypes aren't coming to the language).

  • Namespace names must be capitalized
  • Add a new ns-keyword to the language: keywords that start with a capital
  • Add a new ns-expr, which is ns-name (ns-keyword)*
  • use takes a ns-expr
  • validator ensures importing a pkg or ns must use a pkg-name
Now that `use` is in the language, namespaces should have more robust static checking. The way to do this is to try to ensure namespaces' names begin with capital letters (since datatypes aren't coming to the language). * [x] Namespace names must be capitalized * [ ] Add a new ns-keyword to the language: keywords that start with a capital * [ ] Add a new ns-expr, which is `ns-name (ns-keyword)*` * [x] `use` takes a ns-expr * [ ] validator ensures `import`ing a pkg or ns must use a pkg-name
scott self-assigned this 2023-12-15 21:25:22 +00:00
scott removed their assignment 2023-12-27 04:18:16 +00:00

Closely related to #5.

Closely related to #5.
scott added this to the Computer Class milestone 2024-05-19 19:53:39 +00:00

In fact, completely covered by #5. Closing in favour of #5.

In fact, completely covered by #5. Closing in favour of #5.
scott closed this issue 2024-05-19 19:54:42 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: twc/ludus#4
No description provided.