diff --git a/README.md b/README.md index 909891665..df7ffd551 100644 --- a/README.md +++ b/README.md @@ -72,9 +72,9 @@ Code style is just the first step. We have made many efforts to make the code mo | Go code | Go+ code | Note | | ---- | ---- | ---- | -| package main

import "fmt"

func main() {
    fmt.Println("Hello world")
} | import "fmt"

fmt.Println("Hello world")
| Program Structure: Go+ allows omitting `package main` and `func main`. The contents of the main function can be written directly at the end of a Go+ file. | -| fmt.Println("Hello world") | echo("Hello world") | Go+ provides more builtin functions to simplify the expression of the most common tasks. | -| fmt.Println("Hello world") | echo "Hello world" | Go+ encourages writing code in a command-line style. It reduces the number of parentheses in the code as much as possible, making it closer to natural language. | +| package main

import "fmt"

func main() {
    fmt.Println("Hi")
} | import "fmt"

fmt.Println("Hi")
| Program Structure: Go+ allows omitting `package main` and `func main` | +| fmt.Println("Hi") | echo("Hi") | More builtin functions: It simplifies the expression of the most common tasks | +| fmt.Println("Hi") | echo "Hi" | Command-line style code: It reduces the number of parentheses in the code as much as possible, making it closer to natural language | | a := []int{1, 2, 3} | a := [1, 2, 3] | List literals | | a := map[string]int{
    "Monday": 1,
    "Tuesday": 2,
} | a := {
    "Monday": 1,
    "Tuesday": 2,
} | Mapping literals | | OnStart(func() {
    ...
}) | onStart => {
    ...
} | Lambda expressions |