| Bosque | |
|---|---|
| Paradigm | Multi-paradigm:functional,typed |
| Family | ECMAScript |
| Designed by | Mark Marron |
| Developer | Microsoft |
| First appeared | March 3, 2019; 6 years ago (2019-03-03)[1] |
| License | MIT |
| Filename extensions | .bsq[2] |
| Website | www |
| Influenced by | |
| JavaScript,TypeScript,ML | |
Bosque is afree and open-sourceprogramming language designed and developed byMicrosoft that was inspired by thesyntax anddata types ofTypeScript and thesemantics ofML and Node/JavaScript.[3][4] Design goals for the language include better software quality and improved developer productivity.[5][6]
Bosque was designed byMicrosoft Research computer scientist Mark Marron,[7] who describes the language as an effort to move beyond thestructured programming model that became popular in the 1970s.[3][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 scientistEdsger Dijkstra. Marron believes we can do better by getting rid of sources of complexity likeloops, 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, andIDE support are licensed underMIT License and available onGitHub.[9]
function add2(x: Int, y: Int): Int { return x + y;}add2(2, 3) // 5add2(x=2, y=3) // 5add2(y=2, 5) // 7Thisprogramming-language-related article is astub. You can help Wikipedia byadding missing information. |