Skip to content

Commit

Permalink
README: Go+ Specification for STEM Education => Go+ Mini Specification
Browse files Browse the repository at this point in the history
  • Loading branch information
xushiwei committed Dec 13, 2024
1 parent 99c3861 commit 8535cfc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ For more details, see [Quick Start](doc/docs.md).
## Key Features of Go+

* Approaching natural language expression and intuitive (see [How Go+ simplifies Go's expressions](#how-go-simplifies-gos-expressions)).
* Smallest but Turing-complete syntax set in best practices (see [Go+ Specification for STEM Education](doc/spec-mini.md)).
* Smallest but Turing-complete syntax set in best practices (see [Go+ Mini Specification](doc/spec-mini.md)).
* Fully compatible with [Go](https://github.com/golang/go) and can mix Go/Go+ code in the same package (see [Go+ Full Specification](doc/spec.md) and [Go/Go+ Hybrid Programming](doc/docs.md#gogo-hybrid-programming)).
* Integrating with the C ecosystem including Python and providing limitless possibilities based on [LLGo](https://github.com/goplus/llgo) (see [Support for C/C++ and Python](#support-for-cc-and-python)).
* Does not support DSL (Domain-Specific Languages), but supports SDF (Specific Domain Friendliness) (see [Go+ Classfiles](#go-classfiles)).
Expand Down Expand Up @@ -81,7 +81,7 @@ Code style is just the first step. We have made many efforts to make the code mo
| OnStart(func() {<br>&nbsp;&nbsp;&nbsp;&nbsp;...<br>}) | onStart => {<br>&nbsp;&nbsp;&nbsp;&nbsp;...<br>} | Lambda expressions |
| type Rect struct {<br>&nbsp;&nbsp;&nbsp;&nbsp;Width&nbsp; float64<br>&nbsp;&nbsp;&nbsp;&nbsp;Height float64<br>}<br><br>func (this *Rect) Area() float64 { <br>&nbsp;&nbsp;&nbsp;&nbsp;return this.Width * this.Height<br>} | var (<br>&nbsp;&nbsp;&nbsp;&nbsp;Width&nbsp; float64<br>&nbsp;&nbsp;&nbsp;&nbsp;Height float64<br>)<br><br>func Area() float64 { <br>&nbsp;&nbsp;&nbsp;&nbsp;return Width * Height<br>} | [Go+ Classfiles](doc/classfile.md): We can express OOP with global variables and functions. |

For more details, see [Go+ Specification for STEM Education](doc/spec-mini.md).
For more details, see [Go+ Mini Specification](doc/spec-mini.md).


## Support for C/C++ and Python
Expand Down Expand Up @@ -115,7 +115,7 @@ module YourModulePath

go 1.21 // llgo 1.0

require github.com/goplus/llgo v0.9.7
require github.com/goplus/llgo v0.9.8
```

Based on LLGo, Go+ can support importing libraries written in C/C++ and Python.
Expand Down

0 comments on commit 8535cfc

Please sign in to comment.