Skip to content
Prev 3212 / 21312 Next

[Bioc-devel] mapping between original and reduced ranges

Hi Herve,

I've not used attributes to return values before. 

I guess it would work, and I won't object further if you do it this way, but, since you asked

Again, it "feels wrong" in violating functional

I suspect there may be issues with memory management.  When does the attribute get gc-ed?  When the object does?  If so, then, retaining the attribute in memory when not needed _could_ be a burden, no?

Back in my lisp days, this is when I would use `values` and `multiple-value-bind` (and friends) when I wanted a function to (optionally) return multiple values.  

But this is R.

Would you consider returning instead a list of values, keyed by `value` and `hits`, but only when with.hits 

BTW: with.inframe.attrib is documented as 'For internal use'.  What does it return in the attr?

Thanks for listening!

~Malcolm