-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed as not planned
Labels
designDesign of APIs or of the language itselfDesign of APIs or of the language itself
Description
Following the discussion in https://discourse.julialang.org/t/coordinating-community-efforts-to-enrich-function-docs/80338/8 I propose to add the following catch-all method for copy (tentative):
function copy(x::T) where T
ismutable(x) || return x
throw(ArgumentError("copy for values of type $T is not supported."))
end
However, maybe there are reasons why there is no such definition present?
rafael-guerra-www
Metadata
Metadata
Assignees
Labels
designDesign of APIs or of the language itselfDesign of APIs or of the language itself