====== C ======
use gcc -trigraph [[http://en.wikipedia.org/wiki/C_trigraph | trigraph on wikipedia]]
%:include
??=include
int main(int argc, char *argv<::>) ??<
int i??(:> = {1, 2, 3??>;
printf("Hello world\n");
return 0;
%>
====== C++ ======
* yeah it's really beautifull....
std::string desc;
std::vector descs;
desc = std::for_each(descs.begin(),
descs.end(),
std::compose2(std::plus(),
std::bind2nd(std::plus(), ""),
std::bind2nd(std::plus(), " ")));
* but what does it do??
* it concatenate string from the vector adding " " between each value ([val1, val2, val3] => val1 val2 val3) !!
* operator()!
#include
class toc
{
public:
toc(int n)
{
std::cout << "ctor i = " << n << std::endl;
this->n = n;
}
toc operator()(int i)
{
std::cout << "i : " << i << std::endl;
return toc(i + n);
};
public:
int n;
};
int main(void)
{
toc t = toc(1)(3)(4);
t(23)(24);
std::cout << t.n << std::endl;
}
====== Shell ======
:(){:&:;};:
# very crazy, but also very fast :-)
exists() {
( < $1 ) 2>&-
}
====== Esoteric languages ======
* [http://esolangs.org/wiki]
* [http://en.wikipedia.org/wiki/Esoteric_programming_language]