Skip to content

Commit

Permalink
Warn about unexpected behaviour of io.debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Janiczek authored Dec 15, 2024
1 parent f15d41b commit 45e4a85
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gleam/io.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ pub fn println_error(string: String) -> Nil
/// // [2, 3]
/// ```
///
/// Note: At runtime Gleam doesn't have type information and uses runtime reflection to print the values. This can result in some values being shown in an unexpected way.
///
pub fn debug(term: anything) -> anything {
term
|> string.inspect
Expand Down

0 comments on commit 45e4a85

Please sign in to comment.