These are chat archives for evhub/coconut

6th
Apr 2018
Michael Lindon
@michaelslindon_twitter
Apr 06 2018 03:51

Hi, im wondering if someone would please explain what is going wrong with my code:

def gogo(acc,[x]::xs) = gogo(acc+1,xs)
@addpattern
def gogo(acc,[]) = acc
gogo(10,[])
Traceback (most recent call last):
File "<string>", line 1, in <module>
TypeError: pattern_adder() takes 1 positional argument but 2 were given

Michael Lindon
@michaelslindon_twitter
Apr 06 2018 04:02
i think i see it - @addpattern(gogo)
Evan Hubinger
@evhub
Apr 06 2018 17:35
Yep, I think you got it!
Elliott Indiran
@eindiran
Apr 06 2018 19:42
@evhub why is there both a Travis build and an Appveyor build? From a cursory glance it looks like Travis is building on Linux and Appveyor is building on Windows, but does Travis not support Windows?
It looks like Travis can't support Windows currently, but AppVeyor handles it quite well: https://packaging.python.org/guides/supporting-windows-using-appveyor/
Evan Hubinger
@evhub
Apr 06 2018 20:15
@eindiran Yeah, it's exactly that. Travis is the main testing system, but then we also have AppVeyor for catching Windows-specific bugs.