Suggestions from recent game work:
- All the graphics commands should take an optional last argument of alpha. (I'm looking at
rect_p and
arc_p in particular.)
-
arc_p should take an optional fill color after its edge color, filling the section of the circle cut out by the arc. (Circles are a pain to do manually, and it's right there, looking at me...)
-
textout_p should take it's GROB first. Everything else does in graphics!
- An option to use fixed-width style for
textout_p wouldn't hurt either.
- Pointers or anonymous functions (or just passing functions like variables) would be a godsend. (I know it's a bit like C, but it works. I'd like to stay functional and still modify state, but I can't do that from a function without lists being parsed or global vars, which are icky and hardcoded. Pointers would allow pass-by-refrence.)
-
A higher precision version of Time would be nice, even if it's just Unix. (EDIT: I forgot about ticks.
derp)
- Includes!
Also, how much does the compiler optimize? I'm a rather functional programmer and like to make smallish functions; would a function like
min(x,y) begin return if x > y then y else x end end be inlined each time? If you could give any sort of list, no matter how basic, of compiler optimizations made, that would be awesome.
Loving Unicode in variable names. Can we have a better explanation of user keys on calc? I finally found
this, but this should be in help.
Thanks for all you guys do, and good luck on your work.
EDIT 2: I would love pointers. Having call-by-refrence and the ability to assign to on-the-fly variables from otherwise pure functions would be awesome... Also, function pointers.
Related to the optimization topic, can we have an
inline tag for functions and either that or a
const tag for
local program variables?
Would an
enum type be a possiblity, working synatically like
local (and supporting the other operators)?
I know it sounds like I'm wanting C, but C's pretty boss. There's only so much you can do with effectful BASIC, even if it is compiled.