QScheme accept the standard ';' character as standard comment maker. Anything following the ';' character on the line is ignored.
QScheme also reconizes '#!' followed by anything except a letter as commentary. For example:
#!/this also
#!This not
QScheme is case sensitive: define is not the same as DEFINE. It generaly should not be a problem. If this cause too much troubles, contact me. It should be possible to write a compatibility mode.
QScheme reconizes the following tokens as valid keywords:
By default, keywords are printed out in the first form. You can change this with the keyword-display-type function.
(keyword-display-type n) -> n
Change the way keywords are displayed. For example:
> :ake
> (keyword-display-type 1) :ake
> #!ake
> (keyword-display-type 2) :ake
> ake:
QScheme introduce a new form of lambda and define syntax:
(define (func formal [:opt var ] [:local local-vars])body) -> #undefined
The formal parameters are just like in standard Scheme. The optional part ':opt var' can be used to an optional variable and the ':local local-vars' part is used to create local variables. For example:
and
The define special form also uses the same convention, so you should be able to say:
(tst 10 20)
=> 30