| | 21 | |
| | 22 | === Pros === |
| | 23 | |
| | 24 | 1. Keys PMC become almost equal to all other PMC in terms of handling (especially in PBCs). |
| | 25 | |
| | 26 | 2. Each {{{FooKeyItem}}} will have clean set of responsibilities. |
| | 27 | |
| | 28 | 3. It will speed-up keys handling slightly because we'll avoid big switch statements in each Key.foo vtable methods. |
| | 29 | |
| | 30 | 4. Run-time creation of keys will be simplified to something like |
| | 31 | |
| | 32 | {{{ |
| | 33 | # We are creating [42;"foo";84;"baz"] key. |
| | 34 | $P0 = new ['Key'] |
| | 35 | push $P0, 42 |
| | 36 | push $P0, "foo" |
| | 37 | push $P0, 84 |
| | 38 | push $P0, "baz" |
| | 39 | }}} |
| | 40 | |
| | 41 | 5. Making mistake in Keys creating/using will be almost impossible. |
| | 42 | |
| | 43 | === Cons === |
| | 44 | |
| | 45 | Someone will have to patch IMCC to support new Keys. |
| | 46 | |