CODEC can mean coder/decoder, but the more common (I think) use is compressor/decompressor (as in MP3, H.264, etc).
ENCDEC can mean encoder/decoder, but also encryptor/decryptor.
You're converting from one binary format to another...
Format often has the sense of for human consumption.
What about "Convert"?
$toperl = $dec = Number::Binary::Convert->perl('int24'); $tobin = $enc =
N::B::Convert->binary('int24');?
In this case, you can read -> as "to". So it's "convert (int24) to
perl", or "convert (perl) to binary int24"
At this point, we're down to personal taste - and since you're doing the
work, your vote counts most. Codec is OK. I kind of like Convert,
since it removes any doubt about what the "encoded" form is. And I
guess it allows for Convert->string or Convert->html (or something else
we haven't thought of).
But it's really up to you.
Funny how picking names can be harder than moving the bits...
On 03-Jun-21 14:26, Peter John Acklam wrote:
> tor. 3. jun. 2021 kl. 17:59 skrev Timothe Litt <[email protected]>:
>> How about Number::Binary::Encode->encoder, Number::Binary::Encode->decoder?
> How about Number::Binary::Codec->encoder and
> Number::Binary::Codec->decoder? After all, 'codec' is an abbreviation
> of "(en)coding/decoding".
>
> Peter
OpenPGP_signature
Description: OpenPGP digital signature
