You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#626 already describes one identity function using unevaluated argument. However, my experience is telling that it is useful to have a similar function with evaluated argument.
identity: func["Returns the value passed to it."
value [any-type!]
] [
:value
]
CC - Data [ Version: r3 master Type: Wish Platform: All Category: Mezzanine Reproduce: Always Fixed-in:none ]
The text was updated successfully, but these errors were encountered:
It seems like it would be pretty rarely used, mostly as a function value in general transformation operations. Maybe giving it the full name IDENTITY would be more appropriate, both because it would be easier to remember what it does when seeing it in code, and as a Huffman-coding approach to names. If you don't see functions often it can be harder to read the code without having to backtrace or use HELP, so not abbreviating the name can make things easier. ID seems more like the name of a user function or variable.
Submitted by: Ladislav
#626 already describes one identity function using unevaluated argument. However, my experience is telling that it is useful to have a similar function with evaluated argument.
CC - Data [ Version: r3 master Type: Wish Platform: All Category: Mezzanine Reproduce: Always Fixed-in:none ]
The text was updated successfully, but these errors were encountered: