I am using a "cmd-name!" naming format for functions that are adding to the 
command list that will be communicated to the host program.

(cmd-sound! WAV-FILE)
(cmd-set-position! pos yaw-radians)
Etc.

I am considering using a terser naming convention, perhaps "@name", so you 
would have:
(@sound WAV-FILE)
(@set-position pos yaw-radians)
Etc.

I would argue that while they do mutate global state by sticking something on a 
list, the list is never looked at except at the very end of the frame to hand 
it over to the host system, so they are more like a display / log function that 
a global state hazard, and having a syntax cue for functions that are going to 
impact the sensory presentation may be useful.

Thoughts?  What symbols have the least historic baggage?



-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to