« first day (2481 days earlier)      last day (179 days later) » 

2:44 PM
In the assert function {⍺←'assertion failure' ⋄ 0∊⍵:⍺ ⎕SIGNAL 8 ⋄ shy←0} from APLcart, what's the purpose of returning 0 as a shy result?
 
 
1 hour later…
4:10 PM
I think it might have to do with doing { ... ⋄ 'msg' assert x: ⍬ ⋄ ... } (as you can't have side-effect-only statements inside dfns)
 
4:59 PM
So: if the assertion is true, return false (shyly), so that if the return value is used as a guard in a dfn, the guarded expression is skipped?
 
 
3 hours later…
8:20 PM
@rabbitgrowth Right, if used in a dfn, we need the 0-result so you can write assert x: and if used in a tradfn, we need it to be shy so assert x doesn't print anything.
 

« first day (2481 days earlier)      last day (179 days later) »