File tree Expand file tree Collapse file tree 2 files changed +0
-44
lines changed Expand file tree Collapse file tree 2 files changed +0
-44
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,6 @@ https://elixir-lang.org/blog/2025/02/26/elixir-openchain-certification/
117117 * [ Kernel] Support ` min/2 ` and ` max/2 ` as guards
118118 * [ Macro] Print debugging results from ` Macro.dbg/1 ` as they happen, instead of once at the end
119119 * [ Protocol] Type checking of protocols dispatch and implementations
120- * [ Protocol] Add ` Protocol.impl_for/2 ` and ` Protocol.impl_for!/2 `
121120
122121#### ExUnit
123122
Original file line number Diff line number Diff line change @@ -311,49 +311,6 @@ defmodule Protocol do
311311 raise ArgumentError , "invalid arguments for def inside defprotocol"
312312 end
313313
314- @ doc """
315- Returns the implementation of a given protocol for a given data type
316- or `nil`.
317-
318- This wraps `protocol.impl_for(value)` with a generic type signature.
319-
320- ## Examples
321-
322- iex> Protocol.impl_for(Enumerable, [1, 2, 3])
323- Enumerable.List
324-
325- iex> Protocol.impl_for(Enumerable, :atom)
326- nil
327- """
328- @ doc since: "1.19.0"
329- def impl_for ( protocol , value ) do
330- protocol . impl_for ( value )
331- end
332-
333- @ doc """
334- Returns the implementation of a given protocol for a given data type
335- or raises.
336-
337- This wraps `protocol.impl_for!(value)` with a generic type signature.
338-
339- ## Examples
340-
341- iex> Protocol.impl_for!(Enumerable, [1, 2, 3])
342- Enumerable.List
343-
344- iex> try do
345- ...> Protocol.impl_for!(Enumerable, :atom)
346- ...> rescue
347- ...> Protocol.UndefinedError -> :raised
348- ...> end
349- :raised
350-
351- """
352- @ doc since: "1.19.0"
353- def impl_for! ( protocol , value ) do
354- protocol . impl_for! ( value )
355- end
356-
357314 @ doc """
358315 Checks if the given module is loaded and is protocol.
359316
You can’t perform that action at this time.
0 commit comments