>>384
Ada yang kasi link ke pdf, di dalam pdfnya ada yang indah:
Less traditional symbols are also useful. For example:
☎->✆(); // take my phone (☎) off hook (✆)
This example become even more natural when - as is common - the whitespace operator
is overloaded to mean -> for the telephone class:
class Phone {
// …
Phone* operator ' ' () { return this->operator->(); }
void ✆(); // off-hook
// …
};
Phone ☎;
☎✆(); // take phone (☎) off hook (✆)
It is also common to overload newline to mean application without
arguments, that is (), so that what used to be the long-winded and ugly
my_phone->off_hook();
becomes plain and simple
☎✆;
Finally, semicolon is most often redundant as a statement terminator
so the grammar has been improved to make it optional in most context.
Thus, we get:
☎✆
Extensive use of such special characters together with imaginative and
thoughtful use of whitespace overloading has had an immense impact
on maintenance cost.