Ironpython initial experience

Source: Internet
Author: User

Summarize how to use your spare time to understand ironpython over the past few days (not to mention learning)

One goal of this project is to help other dynamic languages to be transplanted as a success case. NET platform, to enjoy the convenience provided by Clr and the general common library (this is a short part of Dynamic Language ).

Benefits of Dynamic Language: It facilitates an interactive development cycle and facilitates agile development.ProgramMore fun

Python benefits: Supports different programming paradigms: Object-oriented, structured, and functional programming, and supports Aspect-Oriented Programming. sparse Syntax provides better readability, compared with some structured languages, there are fewer syntactic structures, and a large number of English keywords are used to replace punctuation marks, eliminating many line NOSIE (James schementi said,Line noise in C # Is a statement for static type and display, but it objectively affects readability, so it makes a lot of noise Tomorrow :)), with the tracking of dynamic types by the compiler/interpreter, the programmer does a lot less of display declaration work.

Ironpython compilation process:

Ironpython handles C # exceptions and Python exceptions. The solution is to automatically convert exceptions to the type (?) that the catch wants in the program (?)

Another interesting thing is that Aaron Marten mentioned that ironpython can be used instead of VB to write vs macros.

 

Some specific syntaxes:

Import pyevent

Pyenent. make_event ()

If Elif

Try again t

Function:

Isinstance (OBJ, button)

Hasattr

Getattr

Loadxaml

 

References:

Http://blogs.msdn.com/aaronmar/archive/2006/02/16...

Http://msdn.microsoft.com/msdnmag/issues/06/10/CLR...

Ironpython tutorial

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.