Skip to content

Commit 2768bc8

Browse files
deprecate io.debug in favour of echo
1 parent e20cf17 commit 2768bc8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Diff for: CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## Unreleased
4+
5+
- The `debug` function in the `io` module has been deprecated in favour of
6+
the `echo` keyword.
7+
38
## v0.58.0 - 2025-03-23
49

510
- The deprecated `pop` and `pop_map` functions have been removed from the

Diff for: src/gleam/io.gleam

+1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ pub fn println_error(string: String) -> Nil
9393
/// with some types having the same runtime representation results in it not
9494
/// always being possible to correctly choose which Gleam syntax to show.
9595
///
96+
@deprecated("To debug print a value use the `echo` keyword instead")
9697
pub fn debug(term: anything) -> anything {
9798
term
9899
|> string.inspect

0 commit comments

Comments
 (0)