因为宽带到期还没去续,最近上网机会很少(也想逃离颈椎病一阵:-()。
今晚在我妹这边上网,重新编译了更新到了0.98版本,但仍然只有pidg
http://bamanzi.inlsd.org
Mark Jason Dominus在Perl概述中的话语作为开场:在未来的三十年中,人们将会取笑那些发明没有闭包特性的语言的人,如同他们现在正取笑那些发明没有递归这种特性的语言的人是一个道理。
In computer science, a closure is a function that is evaluated in an environment containing one or more bound variables. When called, the function can access these variables. The explicit use of closures is associated with functional programming and with languages such as ML and Lisp. Constructs such as objects in other languages can also be modeled with closures.这个说法比较抽象。还是来看看实际的例子吧。
In some languages, a closure may occur when a function is defined within another function, and the inner function refers to local variables of the outer function. At runtime, when the outer function executes, a closure is formed, consisting of the inner function’s code and references to any variables of the outer function required by the closure.
如果将TiddlyWiki改造成更适合blog的系统,我的一些心得如下:
另外下面这几个插件虽跟blog关系不大,也是应该有的:
前面说的是对最终页面呈现有用的插件,但还需要东西来帮助我们撰写文章:
但这几个插件体积都比较大,直接加到你的TW中会导致最后的HTML比较大,加载太慢,而放在网页上对阅读blog的朋友又没有什么作用,这就可以采用将这些插件用外部文件的方式来加载了,LoadExtPlugin就是干这个的(该网站还提供了一个不小的主题包)。