Bosque (programming language) explained

Bosque (programming language)
Logo Size:256px
Bosque
Paradigm:Multi-paradigm

functional, typed language

Released:[1]
Designer:Mark Marron
Developer:Microsoft
License:MIT License
File Ext:.bsq[2]
Influenced By:JavaScript, TypeScript, ML

Bosque is a free and open-source programming language designed & developed by Microsoft that was inspired by the syntax and types of TypeScript and the semantics of ML and Node/JavaScript.[3] [4] Design goals for the language include better software quality and improved developer productivity.[5] [6]

Overview

Bosque was designed by Microsoft Research computer scientist Mark Marron,[7] who describes the language as an effort to move beyond the structured programming model that became popular in the 1970s.[8]

The structured programming paradigm, in which flow control is managed with loops, conditionals, and subroutines, became popular after a 1968 paper titled "Go To Statement Considered Harmful" by computer scientist Edsger Dijkstra. Marron believes we can do better by getting rid of sources of complexity like loops, mutable state, and reference equality. The result is Bosque, which represents a programming paradigm that Marron, in a paper he wrote, calls "regularized programming."

The Bosque specification, parser, type checker, reference interpreter, and IDE support are licensed under MIT License and available on GitHub.[9]

Examples

Add two numbers

function add2(x: Int, y: Int): Int {
    return x + y;
}

add2(2, 3)     // 5
add2(x=2, y=3) // 5
add2(y=2, 5)   // 7

See also

Further reading

External links

Notes and References

  1. Web site: April 29, 2019 . BosqueLanguage . Microsoft . March 3, 2019 .
  2. https://bosque-lang.com/docs/using-bosque/ Using Bosque - Bosque Programming Language
  3. https://www.theregister.co.uk/2019/04/18/microsoft_bosque_programming_language/ Microsoft debuts Bosque – a new programming language with no loops, inspired by TypeScript
  4. https://betanews.com/2019/04/20/microsoft-bosque/ Bosque is Microsoft's new open source, TypeScript-inspired programming language
  5. https://www.techworld.com.au/article/660220/microsoft-aims-simplicity-bosque-programming-language/?fp=16&fpid=1 Microsoft aims for simplicity with Bosque programming language
  6. https://fossbytes.com/microsofts-new-programming-language-bosque-keeps-your-code-simple/ Microsoft’s New Programming Language ‘Bosque’ Keeps Your Code Simple
  7. https://medium.com/dice-insights/microsofts-bosque-language-wants-to-change-programming-forever-265d65d73c59 Microsoft’s Bosque Language Wants to Change Programming Forever
  8. https://www.infoq.com/news/2019/06/microsoft-bosque/ Microsoft Introduces Bosque, a Programming Language for Writing Easy-to-Reason-about Code
  9. Web site: Bosque Programming Language . . May 7, 2022 .