On 3 September 2012 19:31, Denis Kudriashov <[email protected]> wrote: > Hello > > 2012/9/3 Igor Stasenko <[email protected]> >> >> just imagine you need to write a code which reads raw integer(s) from >> either byte array(s) >> or external address. >> >> so, you will need to write either: >> >> bytarray nbUInt64AtOffset: 10 put: 20 >> >> or >> >> bytearray nbUInt64At: 10 put: 20. > > > I like explicit objects for arguments. So your examples can be something > like: > > bytearray nbAt: 10 asOffset put: 20 nbUInt64 > bytearray nbAt: 10 asOffset put: 20 nbInt32 > bytearray nbAt: 10 asOffset put: 20 nbFloat > > or > > bytearray nbAt: 1 asIndex put: 20 nbUInt64 > > For this classes like NbArrayOffset, NbArrayIndex and others should be > introduced >
the problem with your approach that it will slow down everything , up to the point that it will become useless. :) -- Best regards, Igor Stasenko.
