You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia> LongDNASeq(10)
10nt DNA Sequence:
CA--------
This strikes me as weak typing. In fact, we have not constructed a sequence from 10. Imagine a situation where you mistakenly thing x is something sequence-like, such as a bioseq or a string, but really, it's an integer. Doing LongDNASeq(x) then works - and give the wrong result.
I propose instead we change it to LongDNASeq(undef, 10), similar to arrays.
The text was updated successfully, but these errors were encountered:
Right now you can do
This strikes me as weak typing. In fact, we have not constructed a sequence from
10
. Imagine a situation where you mistakenly thingx
is something sequence-like, such as a bioseq or a string, but really, it's an integer. DoingLongDNASeq(x)
then works - and give the wrong result.I propose instead we change it to
LongDNASeq(undef, 10)
, similar to arrays.The text was updated successfully, but these errors were encountered: