Skip to content

Commit

Permalink
chore: revise reading-and-writing-fields (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
magnus-madsen committed Sep 9, 2024
1 parent 521c776 commit f9a1e5e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/reading-and-writing-fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ syntax.

### Reading Object Fields

TBD
We can read an object field as follows:

```flix
import java.awt.Point
def area(p: Point): Int32 \ IO = unsafe (p.x * p.y)
```

### Reading Static Fields

Expand Down

0 comments on commit f9a1e5e

Please sign in to comment.