4

Maybe I'm just being lazy though.

Maybe I'm just being lazy though.

14 comments

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

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.

[–] ScorpioGlitch [OP] 0 points (+0|-0) 6 years ago

Decode is what I meant to say, sorry.

[–] xyzzy 0 points (+0|-0) 6 years ago

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