
13 Aug
2012
13 Aug
'12
10:19 p.m.
On Mon, 13 Aug 2012, Johan Tibell wrote:
On Mon, Aug 13, 2012 at 2:48 PM, Henning Thielemann
wrote: How about two versions of 'bitSize' - one with Maybe return type in the Bits class and one without Maybe in a FixedBitSize subclass?
Is this worth breaking existing users of bitSize over?
If the method of 'FixedBitSize' is named 'bitSize' then only the type signature will be affected (FixedBitSize constraint instead of Bits). Although I don't know whether this is a good solution.
If anything it seems more worthwhile to throw out Integer from the Bits class and declare Bits to be for fixed sized entities.