Clojurians
#cljs-dev
<
2017-12-06
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

mfikes15:12:24

If things like .indexOf and .lastIndexOf are meant to be part of the stable public API, how would that be conveyed that to ClojureScript users? I don't see how. Perhaps a formal site page detailing guaranteed interop constructs?

dnolen20:12:42

@mfikes seems useful yes

dnolen20:12:05

@juhoteperi noted

dnolen20:12:31

but that really needs to be tested for example Figwheel + Node.js or something like that

dnolen20:12:56

but it seems you already did?

dnolen20:12:02

might be nice to get one more confirm

mfikes20:12:29

@dnolen OK. I’m presuming that the existence of these tests might imply that .indexOf and .lastIndexOf are meant to be public / stable: https://github.com/clojure/clojurescript/blob/3b3db232711266f9f41c94c777084664d6d0b71b/src/test/cljs/cljs/seqs_test.cljs#L131-L168 I’ll start an issue for the site (per https://clojurescript.org/community/contributing_site#major) that perhaps tries to introduce a page covering only these two API calls for now.

dnolen20:12:58

cool thanks

juhoteperi22:12:39

@dnolen Yes, I tested with lein-doo and figwheel both with Node modules and foreign libs