Bit functions

This is the third and probably most hairbrained suggestion I'll post today.
Apologies in advance for idiocy.

In writing XSLT functions to create hash values and to parse binary input,
I have needed to write bit-type functions, e.g., bit:rotate(). I have done
so on the basis of parameters tied to xs:boolean(). This feels to me like a
hack, and I feel like I should be using a simpler data type with a smaller
footprint.

Datatypes aside, would there be an advantage in introducing in XPath 4.0 a
set of standard, common bit-type functions? (Understanding, of course, that
there would need to be variations that treat variations in big- and
little-endianness.)

Best wishes,

jk
-- 
Joel Kalvesmaki
kalvesmaki.com

Received on Tuesday, 1 December 2020 15:14:36 UTC