Skip to content

Commit

Permalink
add warning about not changing data on print
Browse files Browse the repository at this point in the history
  • Loading branch information
mjrodgers authored Jan 29, 2025
1 parent 4a94d08 commit c733608
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/src/DeveloperDocumentation/printing_details.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ while on the REPL detailed printing is used to show top level objects.
[...]". In particular, the output of `display` will not work in the
`jldoctest`s.

!!! warning "changes on print"
Printing an object should not change data in any way through changing the representation
of the object being printed, nor by generating any cached data that will affect
any future computations.

### Mockup

#### Detailed printing with a new line
Expand Down

0 comments on commit c733608

Please sign in to comment.