OO approach looks over-kill to me. since unpacking template is only a small part of parsing a record.
Refactoring this into two different classes would be creating more duplication of code. since the rest of logic is the same.(handling missing field, and what not..;)
In reply to Re^2: Avoid run-time checking
by bagyi
in thread Avoid run-time checking
by bagyi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |