length() of an atom
- Posted by DerekParnell (admin) Jul 26, 2010
- 1793 views
I'm proposing that getting the length() of an atom should return 1. Currently it crashes the program.
This would simplify some algorithms because it avoids having to test for atom/sequence before taking the length. In those cases, we just use 1 anyway for atoms.
My thinking is that if appending an atom to a sequence increases the sequence length by 1, then it must follow that the length of an atom is 1.
Can anyone give me some convincing reasons to not make this change for Eu4?