smiths / caseStudies

Case studies of (manual) documentation for scientific computing software
3 stars 2 forks source link

Update definition of "Sequence"s in GlassBR's MIS #109

Closed niazim3 closed 6 years ago

niazim3 commented 6 years ago

Should the definition of sequences be updated to "Sequences are lists filled with ordered elements of the same data type"? https://github.com/smiths/caseStudies/blob/75f88389777a2b76422e691ef34065f505ad411f/CaseStudies/glass/docs/Design/MIS/glassbr_mis.tex#L103

Although it is known that sequences are ordered, perhaps making it explicit will be beneficial?

smiths commented 6 years ago

The word list is supposed to convey your intended meaning, but I agree that it falls short. Your definition doesn't quite work either, since it implies that the element themselves have a natural ordering. From the Wikipedia page for sequences, I suggest the following definition:

"Sequence are lists that represents a countable number of ordered values, where the same value may occur more than once."

This is very explicit about the fact that the same value can occur more than once, which usually helps people understand that sets and sequences are different.

niazim3 commented 6 years ago

I added "of the same data type" from the original definition to the new definition (see referenced commit above). If that is alright, this issue can be closed.

smiths commented 6 years ago

Sounds good. Yes, this issue can be closed.