From 5024c2098b4d97c482ca02bc2a85ce85180aa2a2 Mon Sep 17 00:00:00 2001 From: sher Date: Fri, 27 Oct 2023 01:02:54 +0900 Subject: [PATCH 1/2] Add NaN? predicate (#349) --- resources/squint/core.edn | 1 + src/squint/core.js | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/resources/squint/core.edn b/resources/squint/core.edn index 569ec851..e6dc1aa5 100644 --- a/resources/squint/core.edn +++ b/resources/squint/core.edn @@ -87,6 +87,7 @@ max merge min + NaN_QMARK_ neg_QMARK_ next nil_QMARK_ diff --git a/src/squint/core.js b/src/squint/core.js index 5888e227..ec8cd059 100644 --- a/src/squint/core.js +++ b/src/squint/core.js @@ -1396,6 +1396,10 @@ export function* re_seq(re, s) { } } +export function NaN_QMARK_(x) { + return Number.isNaN(x); +} + export function number_QMARK_(x) { return typeof x == 'number'; } From e8f721cce5751f19138a63cd8885a776d5a4a586 Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Mon, 30 Oct 2023 11:17:53 +0100 Subject: [PATCH 2/2] projects using squint --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 36f977ae..f28335d1 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,8 @@ Squint is not intended as a replacement for ClojureScript but as a tool to target JS for anything you would not use ClojureScript for, for whatever reason: performance, bundle size, ease of interop, etc. -> :warning: This project should be considered experimental and may still undergo -> breaking changes. It's fine to use it for non-critical projects but don't use -> it in production yet. +> :warning: This project is a work in progress and may still undergo breaking +> changes. ## Quickstart @@ -295,6 +294,11 @@ to make it all work. ``` +## Projects using squint + +- [static search index for Tumblr](https://github.com/holyjak/clj-tumblr-summarizer/commit/a8b2ca8a9f777e4a9059fa0f1381ded24e5f1a0f) +- [worlde](https://github.com/jackdbd/squint-wordle) + License =======