"using namespace" #233

Closed
opened 2020-02-20 23:17:33 +09:00 by zxq9 · 0 comments
zxq9 commented 2020-02-20 23:17:33 +09:00 (Migrated from gitlab.com)

Created by: radrow

When you are heavily using some namespace it becomes very annoying to mention its name every time. Also, one could make aliases for namespaces:

include "List.aes"
include "Option.aes"
contract Con =
  using List
  using Option as O
  entrypoint f(x) = O.concat_option(sum(x)) // `sum` originally in `List` 

The naming collisions would throw type errors and ask for qualification.

*Created by: radrow* When you are heavily using some namespace it becomes very annoying to mention its name every time. Also, one could make aliases for namespaces: ``` include "List.aes" include "Option.aes" contract Con = using List using Option as O entrypoint f(x) = O.concat_option(sum(x)) // `sum` originally in `List` ``` The naming collisions would throw type errors and ask for qualification.
Sign in to join this conversation.
No Milestone
No project
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: QPQ-AG/sophia#233
No description provided.