bramtayl
bramtayl
Someone has already done a lot of work here: http://xoomer.virgilio.it/pid. I had to mess around with the regular expressions but it seems to mostly work.
This is the julia code I used to update their options file: ```julia open("/home/brandon/Downloads/pattern.txt") do input open("/home/brandon/.nethackrc", append = true) do output println(output) for line in eachline(input) # ignore the...
I was hoping for something like: doctest VERSION == this_version this printing doctest VERSION == another_version another printing
I'm mostly interested in this because I want to maintain support for both 1.0 and 1.1, and I run doctests as part of CI. Preferable the `jldoctest` block would only...
> I assume you still have normal tests that verify the APIs on all versions Not usually. Or to put it another way, it's rare for me to write a...
Maybe a bit more generally, adding a condition under which doctests will run and display: doctest condition = x -> VERSION == v"1.0"
Eh, in newer packages, I've decided to only run doctests on latest julia, and replicate them all as regular tests. It's a little bit less elegant but more robust since...
i like this
Ok, further thoughts: why not just make everything lazy? Eager methods could just be optimization methods of Base.collect
I mean, map internally creates a generator and collects it, so... Being super-lazy opens up options for optimizations. For example, mapping a reduce function over truly lazy groups would enable...