Options Array

From KnowledgeTree Community

Jump to: navigation, search

It is often necessary to aggregate a whole group of options together before calling a function. When there are only 1 or 2 options, then this is quite easy, but when there are 10 or 20 then its very complicated. Reading the code is also easier if things have useful names (e.g. "filename") rather than just being "parameter 3 to frobObject".

Options Arrays are the common way to do this in KT.

FIXME this description leaves much to be desired.

Personal tools