unison icon indicating copy to clipboard operation
unison copied to clipboard

Bring back `namespace` blocks and allow them to contain type decls, term defs, etc

Open pchiusano opened this issue 5 years ago • 3 comments

Namespace blocks have some weird limitations:

  • Can't have type declarations in them
  • Doesn't parse to have use at the top of a namespace block
  • I think if you say namespace Optional where ..., you still have to use Optional None Some.

Related: #380

pchiusano avatar Apr 09 '19 14:04 pchiusano

We determined that by adding some extra stuff to ParsingEnv, we could make it so namespace blocks can have type decls, term decls, use statements...

pchiusano avatar Aug 12 '19 20:08 pchiusano

Also, if it's easy: support namespace .bar where ..., allow absolute names for namespaces, so easy to declare definitions in paths that aren't under current namespace.

pchiusano avatar Aug 12 '19 20:08 pchiusano

Also related #1299

Also @Stew mentioned they should contain project names too, which made sense until I started to write it down. Will need to ask him for clarification. What do you do with multiple blocks for different projects in the same scratch file on save?

aryairani avatar Apr 18 '24 02:04 aryairani