<Regenaxer>
i.e. in the sense that 'nop' is "no operation", a function that does nothing except evaluating its arguments. So 'prog' returns the last arg, 'nil' always NIL, and 't' always T
<Regenaxer>
'prog1' and 'prog' are also 'nop'
<Regenaxer>
'prog1' and 'prog2' are also 'nop'
rob_w has joined #picolisp
freemint has joined #picolisp
<DKordic>
Good morning everyone.
<DKordic>
"nop" is how I comment S-Expressions, with an "apply"cation of read-macros :3 .
<freemint>
Good Morning DKordic
<DKordic>
Sorry, remove rather than disable.
<DKordic>
Guten Morgen Regenaxer, freemint.
* DKordic
[facepalm]
<Regenaxer>
Good morning DKordic
<Regenaxer>
Good morning freemint
<Regenaxer>
DKordic, I did not read all above, and don't completely understad the purpose
<Regenaxer>
The comment should be removed by a read macro?
<Regenaxer>
But still be more "active" than a normal comment # ?
<DKordic>
Exactly. Any way to conveniently ignore complete S-Expressions. I prefer to operate on SExp rather than txt :3 .
<Regenaxer>
I have such ignored expressions a lot, eg for apps running both on PilBox and normally
<Regenaxer>
I use ~(condition ..)
<DKordic>
:3 I am at the level of "nop".
* DKordic
[ROFL]
<Regenaxer>
the trick is with ~()
<Regenaxer>
For example:
<Regenaxer>
(de inMob ()
<Regenaxer>
`(when IN-H '(nil (from "~()"))) )
<Regenaxer>
~(inMob)
<Regenaxer>
# code only in mobile part
<Regenaxer>
...
<Regenaxer>
~()
<Regenaxer>
I have many such functions like 'inMob'