Simple question as title says. I saw some questions on StackOverflow(and in internet) about use cases of nibbles, but I don't understand why do we need to use nibbles. I mean byte is the smallest unit of memory in computing so performing operations on it to manipulate half of it does not seem to be efficient. for example there is article on GeeksForGeeks about swapping nibbles in byte. So if there is need of such thing as nibble why it is not defined as data type(like byte
or int
or any other) in any nonarchaic programming language?
I know history of bits, nibbles or bytes. Also read wikipedia articles and googled lots of stuff to find the answer on my question, but I was not able to. Maybe this will mark as opinion based and closed but I just wanna have some discussion about this topic, I don't know other good place to ask the same question, so please be kind.