Warning: this blog post doesn't contain any puns at all. It's just a boring update about my progress. If you don't believe me, just go ahead and read it. I dare you.
Been working on file I/O and Buf
s lately. It's tough work, but I'm now at a point where things run. Some highlights:
IO.write
method.IO.read
and IO.write
. So I rewrote it.IO.write
method working, I wrote an IO.read
method along the same lines. Here they are.Now, these new methods obviously write and read bytes to and from files, but the tests indicate that things don't properly round-trip yet. Part of that is because the tests want the example string "f̦̦" to encode as iso-8859-1, but there's no logic that does that yet. My slightly sleepy brain tells me there's more to the story though, or the string wouldn't come back garbled as "f̮̦". (Interesting how that somehow feels like a small piece of mojibake, before the brain even takes in the individual characters.)
Another nice highlight was my question about how Buf
s should stringify, which TimToady just answered on #perl6. That should be a smop to implement.