4

Maybe I'm just being lazy though.

Maybe I'm just being lazy though.

14 comments

[–] xyzzy 1 points (+1|-0)

There probably is, but IMHO there shouldn't. An encode should encode and nothing else, no sanitizing, no stripping, no fiddling with encoding.

One tool for one thing. Simple input, simple output. Combine them as alias or function or method or whatever your language likes it to be called.

Decode is what I meant to say, sorry.

[–] xyzzy 0 points (+0|-0)

Same goes for decode. It should only handle decoding. No messing with a single bit.