| 201 | {{{ |
| 202 | Infinoid> So, um, if we must check the return value of Parrot_io_peek now, what should the peek op do |
| 203 | if it receives the error? Return ""? Toss an exception? |
| 204 | bacek> Eat kittens? |
| 205 | bacek> O wait... |
| 206 | Infinoid> mmm, kittens |
| 207 | Infinoid> eating kittens is not O(1) tho |
| 208 | bacek> hmm.. O(n) isn't bad either |
| 209 | Infinoid> Parrot_io_kittens_eat(interp, pmc_new(enum_class_Kitten)) |
| 210 | Infinoid> I'll make it return "" and see whether tests pass. |
| 211 | bacek> Hmm... We can add Kitten in Core PMCs. |
| 212 | bacek> Are you sure that it should be _io_ prefixed? |
| 213 | Infinoid> Eating kittens seems like an input operation to me |
| 214 | moritz> Parrot_i_kittens_eat(...) :-) |
| 215 | Infinoid> maybe it should be classified as parsing, though. |
| 216 | bacek> It will require some output later :) |
| 217 | moritz> no, kittens are physically unique in that they can be turned into free energy, to 100% |
| 218 | }}} |