bloom-lang / bud

Prototype Bud runtime (Bloom Under Development)
http://bloom-lang.net
Other
854 stars 60 forks source link

channels w/o locspecs easy to misuse #187

Closed jhellerstein closed 13 years ago

jhellerstein commented 13 years ago

Currently, a channel definition without a locspec "@" sign defaults to a loopback. However, it's easy to forget the "@". To discourage bugs we should raise an error on a forgotten "@" sign, and introduce a different syntax for loopbacks.

neilconway commented 13 years ago

Seems reasonable to me.

For the loopback syntax, one way to do it would be via a "loopback" collection type. And/or we could just predefine a single channel with the name "loopback", and have that channel behave specially (no location spec, always deliver to the current Bud instance).