Skip to content

Commit

Permalink
feat(readme): hello world, more verbose form for by newcomers
Browse files Browse the repository at this point in the history
  • Loading branch information
emil14 committed Nov 16, 2024
1 parent c9412b1 commit 0686f9f
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 @@ -76,14 +76,14 @@ If you open `my_awesome_project/src/main.neva` with your favorite IDE you'll see
```neva
import { fmt }
def Main(start) (stop) {
fmt.Println
def Main(start any) (stop any) {
println fmt.Println
---
:start -> { 'Hello, World!' -> println -> :stop }
}
```

The `import { fmt }` statement imports the standard library's `fmt` package which provides common formatting and printing functionality. The `Main` component has `start` inport and `stop` outport, with a `println` node (instance of stdlib's `fmt.Println`). The network after `---` shows: on `start` message, `"Hello, World!"` is sent to `println`, then program terminates via `stop` signal.
The `import { fmt }` statement imports the standard library's `fmt` package which provides common formatting and printing functionality. The `Main` component has `start` inport and `stop` outport of type `any`, with a `println` node (instance of `fmt.Println`). The network after `---` shows: on `:start` message, `"Hello, World!"` is sent to `println`, then program terminates via `:stop` signal.

### What's Next?

Expand Down

0 comments on commit 0686f9f

Please sign in to comment.