Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions lang-guide/chapters/types/type_signatures.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,19 +79,3 @@ and `false` if not present.

You cannot use the `bool` type as a flag annotation as that is the same
as the the existence or not of the occurrence of the flag.

## Closure parameters

(TODO: Needs update for changes in 0.92)

In Nu, closures have a simpler kind of type annotations for parameters
than custom commands. Basically, closures can have type annotations for their
parameters but not optional or default values.

E.g. An annotated closure:

```nu
let cl = {|x: int, y: string| $"x: ($x), y: ($y)" }
do $cl 88 'hello'
# => x: 88, y: hello
```