@pedantic: I sometimes introduce newtypes for parameters in functions
just to be sure, and am actually slightly in favor of having a position
and a length/delta newtype.

Gruss,
Christian

* Ketil Malde <[email protected]> [11.12.2012 15:15]:
> Christian Höner zu Siederdissen <[email protected]> writes:
> 
> >> 'slice' would select a substring of a sequence, delimited by the
> >> offsets.  (Inclusive, I guess?)
> 
> > start + length
> > vs.
> > start + stop
> > coordinates? Vector uses start + length.
> 
> Hm, yes. That is: please discuss!  My first thought was the latter, but
> consistency and ease of use will be important.
> 
> I sometimes feel we really ought to differentiate the types of positions and
> offsets, so that this would be safe and unambigous - but perhaps that
> gets overly pedantic. :-)
> 
> -k

Attachment: pgpEzDzAeuMb8.pgp
Description: PGP signature

_______________________________________________
Biohaskell mailing list
[email protected]
http://malde.org/cgi-bin/mailman/listinfo/biohaskell

Reply via email to