JavaScript and DSL

Source: Internet
Author: User
Tags javascript eval

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.