• LOGIN
    • No products in the cart.

What is new in Python programming?

Python fans wait for python to adopt functional programming features is over now. They can get the features without having to switch to a new Python implementation. A new developed open source dialect of Python is Coconut. Coconut provides new syntax for using features found in functional languages like Haskell and Scala. Coconut directly compiles programs written in it to vanilla Python, so as to make it run on whatever Python interpreter already uses.

Exploring more Coconut it comes out that it involves more elegant and readable ways to do things with Python already does. For example “Pipeline-style programming” which allows the arguments for a function to be submitted to the function with separate syntax.

Pattern matching is something which is not available through Python, but is found in many other modern languages. Values can be tested for a match against a defined pattern, and in the event of a match, variables can be bound from the match and submitted as arguments to a function.

So Coconut allows matching for more than just string expressions. For example, a list of incoming objects could be matched against a list of prospective data types. Debugging plagued many of the languages that transpiled to JavaScript until source maps came along to relate the transpiled code back to its source. Coconut provides with similar thing.

If a command-line switch is passed to the Coconut compiler then it decorates all lines of emitted Python code with a comment that refers back to the apt line in the Coconut source code.

The creators of the Coconut would want the logical extension to Python, not a replacement for it. All valid Python apps are also valid Coconut apps, and so Coconut can draw on the existing roster of libraries and C extensions without much, if any alteration.

Tek Classes provides the Python Online Training and also provides the training videos from experienced IT professionals for free enroll contact us.

July 11, 2017

0 responses on "What is new in Python programming?"

Leave a Message

Tek Classes © Databi Solutions Pvt Ltd, 2014 - 2017.All rights reserved.
X