A lot of blogs from Stefan tilkov recentlyArticleTalking about the powerful functions of JavaScript, I do not know that it is related to the recent series of JavaScript-based network applications that provide powerful user interfaces. For example, Google's new service, canyonbridge's cbconnect, and salesforce.com have a great impact. Simon wison mentioned that using Javascript eval () and with can provide many dazzling functions. In fact, we need to add a function that is completely "first-class citizen" in Javascript, and closure can also be easily applied in JavaScript. The so-called first-class citizens refer to the following ):
- Variable reference
- Can be passed into the function as a parameter
- Can be returned by the function as the return value of the function.
- Can be included in the data structure
The trimquery mentioned by Simon wison is very similar to my previous homework. At that time, we used LISP to implement similar query statements for the data structure in the memory, including join, projection, and selection.