Fork me on GitHub
#squint
<
2022-09-10
>
tylerw00:09:37

Haven’t had a chance to look at this until today when noticed the name change posted on Twitter. It reminds me very much of Fennel, which compiles to Lua (which I use to configure Neovim)!

Cora (she/her)04:09:48

that came up when we were discussing a new name

Cora (she/her)04:09:53

fennel is pretty nice 🙂

Cora (she/her)05:09:58

in squint is nthnext just:

export function nthnext(xs, n) {
  return seq(xs) ? drop(n, xs) : null;
}

Cora (she/her)05:09:16

or do we want to eagerly realize that into an array?

Cora (she/her)05:09:43

or do we want to eagerly realize the iterator and then put the remaining values back into a new instance of the type that xs came in as?

Cora (she/her)05:09:21

user=> (nthnext {:foo "bar" :baz "qux" :hi "bye"} 1)
([:baz "qux"] [:hi "bye"])

Cora (she/her)05:09:34

seems like we could just convert it to a vec and return it?

borkdude09:09:01

I have come to think maybe we don't need to include nthrest/next since they would just be equivalent to drop

borkdude09:09:14

cc @U4YGF4NGM for second opinion

lilactown17:09:15

personally never used them

borkdude10:09:15

Migration of code and links, etc to squint now completed

eccentric J18:09:13

What inspired the name change?

borkdude18:09:45

I just didn't like clavascript enough

eccentric J18:09:22

I see. Is the inspiration that if you squint it looks just like cljs?

👍 3