Home > News content

Microsoft pushes the latest programming language Bosque to replace the Loop loop with Functors

via:cnBeta.COM     time:2019/4/19 8:31:53     readed:732


Microsoft China Official Store - Home

The difference between "Functors" and "Loop loop"

Bosques addresses the five main sources of Accidental Complexity:

- Variable state and framework / Mutable State and Frames;

- Loops, recursion, and invariants / Loops, Recursion, and Invariants;

- Uncertainty is / Indeterminate Behaviors;

- Data invariant violations / Data Invariant Violations;

- Equality and Alias ​​/ Equality and Aliasing

As mentioned above, Bosques does not require loop loop statements such as 'for', 'while', 'do while', etc.MicrosoftThe introduction of "Functors" instead of "Loop Loop" can improve the quality of software compilation.

Developers with JavaScript scripts or TypeScript (which is a superset of JavaScript) will have a better understanding of Bosque code, and the Bosque language is inspired by TypeScript syntax, types, and combinations of ML and Node/JavaScript semantics. To learn more about the Bosque language, check out this Microsoft research paper.

Bosque code examples are listed on the GitHub page

China IT News APP

Download China IT News APP

Please rate this news

The average score will be displayed after you score.

Post comment

Do not see clearly? Click for a new code.

User comments