length() of an atom

new topic     » topic index » view thread      » older message » newer message

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?

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu