Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal function $clone() is wrong #1161

Closed
samchon opened this issue Jul 14, 2024 · 0 comments
Closed

Internal function $clone() is wrong #1161

samchon opened this issue Jul 14, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@samchon
Copy link
Owner

samchon commented Jul 14, 2024

The $clone() function is used by typia.misc.clone<T>() function when some value has any type.

By the way, return type of typia.misc.clone<T>() is Resolved<T>, but $clone() function is returning Primitive<T> type.

Also, its function is just returning JSON level hard copying: JSON.parse(JSON.stringify(value)).

Therefore, the $clone() function's return type and main logic must be changed, suitable for its origin spec.

@samchon samchon added the bug Something isn't working label Jul 14, 2024
@samchon samchon self-assigned this Jul 14, 2024
samchon added a commit that referenced this issue Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Status: Done
Development

No branches or pull requests

1 participant