diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gleam/dynamic.gleam | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/gleam/dynamic.gleam b/src/gleam/dynamic.gleam index 731d3e2..bac548a 100644 --- a/src/gleam/dynamic.gleam +++ b/src/gleam/dynamic.gleam @@ -26,22 +26,9 @@ pub type Decoder(t) = /// Converts any Gleam data into `Dynamic` data. /// -pub fn from(a) -> Dynamic { - do_from(a) -} - -@external(erlang, "gleam_stdlib", "identity") -@external(javascript, "../gleam_stdlib.mjs", "identity") -fn do_from(a: anything) -> Dynamic - -@deprecated("This function undermines the type system and opens the door to cryptic runtime errors and incorrect behaviour") -pub fn unsafe_coerce(a: Dynamic) -> anything { - do_unsafe_coerce(a) -} - @external(erlang, "gleam_stdlib", "identity") @external(javascript, "../gleam_stdlib.mjs", "identity") -fn do_unsafe_coerce(a: Dynamic) -> a +pub fn from(a: anything) -> Dynamic /// Decodes a `Dynamic` value from a `Dynamic` value. /// |