Target Directive

In order to make it clear to the programmar and compiler what target backends a program expects, I’m thinking about adding a top-level directive:

#backend visual { display, camera, @x, @y,@t,@w,@h }

which would tell the compiler that we are planning on targeting the visual backend, and using the functions display and camera as well as the coordinates @x, @y, @t, @w, and @h.

To include everything that a backend supplies, you could just write

#backend visual

To avoid namespace collisions, you could write

#backend peripherals {mouseX, mouseY, spaceDOWN} as P

and use those signals as P.mouseX or P.spaceDOWN.