Clojurians
#cljs-dev
<
2016-02-14
>

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

mfikes02:02:51

Hah, the compiler is starting to feel slightly sentient:

WARNING: Unknown compiler option ':optimisations'. Did you mean ':optimizations'?
WARNING: Unknown compiler option ':bogus'.
WARNING: Unknown compiler option ':mein'. Did you mean ':main'?
WARNING: Unknown compiler option ':input-to'. Did you mean ':output-to'?
WARNING: Unknown compiler option ':argit'. Did you mean ':target'?
WARNING: Unknown compiler option ':outputdie'. Did you mean ':output-dir'?

richiardiandrea02:02:13

Did you use some kind of clever diff?

mfikes03:02:10

@richiardiandrea: It finds a key with minimal Levenshtein distance from the mis-typed key.

richiardiandrea03:02:32

Ahaha great job!

anmonteiro12:02:08

still on the topic of metadata in collections: this is possible in clojure:

user=> (meta (with-meta (seq [1 2 3]) {:a 1}))
{:a 1}
while in CLJS:
cljs.user=> (meta (with-meta (seq [1 2 3]) {:a 1}))
No protocol method IWithMeta.-with-meta defined for type cljs.core/IndexedSeq: (1 2 3)
	 cljs$core$missing_protocol (cljs/core.cljs:264:4)
	 cljs$core$_with_meta (cljs/core.cljs:570:1)
	 cljs$core$with_meta (cljs/core.cljs:1845:8)

anmonteiro12:02:35

also an oversight or expected?

dnolen16:02:01

@anmonteiro: definitely an oversight

anmonteiro16:02:46

@dnolen: OK, will open issue

anmonteiro16:02:41

btw, I commented on CLJS-744 but I'll ask here anyway. Is is alright if I assign it to myself?

dnolen16:02:59

@anmonteiro: yes always OK to assign to yourself if you’re going to take it

dnolen16:02:50

@mfikes looks awesome

mfikes16:02:09

@dnolen: thanks :simple_smile:

anmonteiro16:02:27

@dnolen: cool, thanks. it's the one about indexOf and lastIndexOf in ISequential. I'm thinking that the way to approach it is to (specify! ISequential Object ...), is this the wrong way to look at it?

dnolen17:02:39

@anmonteiro: I would just add the Object methods, I wouldn’t bother with specify

anmonteiro22:02:49

@dnolen: I have some doubts regarding CLJS-744.

anmonteiro22:02:12

It seems that in some cases (e.g. IndexedSeq) we could delegate to the native host .indexOf

anmonteiro22:02:31

but in others (e.g. RSeq) this would not be possible

dnolen22:02:43

@anmonteiro: equality semantics are different

anmonteiro22:02:02

oh that's right

anmonteiro22:02:04

custom implementation it is

anmonteiro22:02:29

it actually makes things easier