From f3a4949adf4b1e383ad6895ee810f10e658ece31 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Tue, 22 Dec 2020 21:10:54 -0500 Subject: =?UTF-8?q?Don't=20allow=20=E2=89=A4=20on=20operations=20in=20the?= =?UTF-8?q?=20VM?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/bqn.js | 1 + 1 file changed, 1 insertion(+) (limited to 'docs') diff --git a/docs/bqn.js b/docs/bqn.js index 29201421..de50537d 100644 --- a/docs/bqn.js +++ b/docs/bqn.js @@ -138,6 +138,7 @@ let floor = (x,w) => { } let lesseq = (x,w) => { let s=typeof w, t=typeof x; + if (s==="function"||t==="function") throw Error("𝕨≤𝕩: Cannot compare operations"); return +(s!==t ? s<=t : w<=x); } let table = f => setrepr(()=>[4,f,table], (x,w) => !has(w) -- cgit v1.2.3