And
mixed [](string what) { if (data[what]) return data[what]; return ([])[0]; }
can be shortened to
mixed [](string what) { return data[what]; }
(Unless it's a deliberate feature that a value of zero is returned as UNDEFINED.)
/ Martin Stjernholm, Roxen IS
Previous text:
2003-02-10 19:36: Subject: Implicit vs. explicit type casting with Pike
([])[0] is much clearer written as UNDEFINED.
Aliasing like
mixed `->(string what) { return `[](what); }
is better written as
constant `->=`[];
/ Martin Nilsson (Åskblod)