Update Examples

Glen Whitney 2024-08-24 05:20:29 +00:00
parent 67fc39ddef
commit 46243a69fc

@ -33,7 +33,6 @@ fn main
(Skipping for now because we likely want "f-strings" in Husht, which require some thought/design.) (Skipping for now because we likely want "f-strings" in Husht, which require some thought/design.)
### Primitives ### Primitives
<table> <table>
<tr> <tr>
<th>Rust</th> <th>Rust</th>
@ -95,11 +94,9 @@ fn main
</td></tr></table> </td></tr></table>
#### Literals and operators #### Literals and operators
Not really anything new in this subsection. Not really anything new in this subsection.
#### Tuples #### Tuples
<table> <table>
<tr> <tr>
<th>Rust</th> <th>Rust</th>
@ -185,13 +182,11 @@ fn main()
</td></tr></table> </td></tr></table>
#### Arrays and slices #### Arrays and slices
Not really anything new in this subsection; we don't currently expect that Husht will make material changes in array/slice declaration or indexing. Not really anything new in this subsection; we don't currently expect that Husht will make material changes in array/slice declaration or indexing.
### Custom Types ### Custom Types
#### Structures #### Structures
<table> <table>
<tr> <tr>
<th>Rust</th> <th>Rust</th>
@ -325,7 +320,6 @@ fn main()
</td></tr></table> </td></tr></table>
#### Enums #### Enums
<table> <table>
<tr> <tr>
<th>Rust</th> <th>Rust</th>
@ -418,3 +412,53 @@ fn main()
``` ```
</td></tr></table> </td></tr></table>
##### linked list
<table>
<tr>
<th>Rust</th>
<th>Husht</th>
</tr>
<tr>
<td>
```
```
</td><td>
```
```
</td></tr></table>
#### Constants
Not really anything new in this section.
### Variable Bindings
Not really anything new here.
#### Mutability
Or here.
#### Scope and shadowing
<table>
<tr>
<th>Rust</th>
<th>Husht</th>
</tr>
<tr>
<td>
```
```
</td><td>
```
```
</td></tr></table>
#### Declare first
Nothing here.
#### Freezing
Or here.