tonyg / syndicate

syn·di·cate: a language for interactive programs
http://syndicate-lang.org/
GNU Lesser General Public License v3.0
152 stars 11 forks source link

Re-finagle module-begin to a more incremental style #34

Closed howell closed 6 years ago

howell commented 6 years ago

Fixes 33

I'm not sure this change handles submodules, in particular the main submodule, correctly. In the following program, should the thing in the main submodule be run as part of the initial dataspace?

#lang syndicate/actor

(module+ main
  (spawn (on-start (printf "here I am\n"))))

With the changes, nothing happens. But the previous version just printed out the actor struct.

The uses of (module+ main) I've found in syndicate programs just use it to change the current-ground-dataspace. Should anything else be supported?