Microsoft's new programming language 'Bosque' has no love for loops

Reading time icon 2 min. read


Readers help support MSpoweruser. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help MSPoweruser sustain the editorial team Read more

Microsoft has introduced a new programming language named Bosque. The new language does not follow many conventional models that we know today, according to the developer of the language, Mark Barron. Instead, it has opted for ‘regularized programming model’ which according to the company will increase developer productivity, software quality, and enable a golden age of developments in compilers and developer tooling.

Bosque addresses five major sources of accidental complexity. These are ‘Mutable State and Frames’, ‘Loops, Recursion, and Invariants’, ‘Indeterminate Behaviors’, ‘Data Invariant Violations’, and ‘Equality and Aliasing.’

As mentioned above, Bosques doesn’t require ‘for’,’ while’, ‘do while’ loops, it approaches conditionals in a different way. Microsoft introduced ‘Functors’ which serves the purpose of ‘loop’ and can increase software quality. You can see how ‘Functors’ differs from ‘loops’ in the below image.

Those of you familiar with JavaScript and its frameworks, TypeScript(which is a superset of JavaScript), will understand Bosque codes better than anyone else as Bosque language is derived from a combination of TypeScript inspired syntax and types plus ML and Node/JavaScript inspired semantics. To know more about Bosque language in detail check this research paper from Microsoft. You can also find code examples on GitHub.

Via: WinFuture

More about the topics: Bosque, Bosque programming language, microsoft, programming language

Leave a Reply

Your email address will not be published. Required fields are marked *