Entries from 2010-07-01 to 1 month

snipMate.vim をいじっています

vim

タイピングという、コーディングに於いて本質ではない部分をいくらかでも軽減しようと、 snipMate.vim という vim プラグインを利用し始めたのですが、色々不満な点があったのでいじったりしています。http://github.com/niha/snipmate.vim

twice

0 = \fn. n 1 = \fn. f n 2 = \fn. f (f n) ... (.) = \gfn. g (f n) twice = \f. f . f = \n. f (f n) = 2 (^) = \xy.\fn. (y x) f n \fn. twice twice f n = twice ^ twice = 2 ^ 2 \fn. twice twice twice f n = (twice twice) twice = twice ^ (twice ^ …

こわいはなし

template <typename ...Args> void f(Args... args){ [args...](){ }(); } g++-4.5 -std=c++0x に投げ込むと capture_pack.cpp: In function ‘void f(Args ...)’: capture_pack.cpp:3:8: error: expected ‘,’ before ‘...’ token capture_pack.cpp:3:8: error: expected identi</typename>…