Created
May 2, 2022 14:03
-
-
Save trycf/98143d867a55faa560ae329192d255f1 to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
system=createObject("java", "java.lang.System") | |
s = "there can be only one" | |
e = s.equals(s) | |
t = true | |
writeDump([ | |
"e" = e, // true | |
"t" = t, // true | |
"==" = e == t, // true | |
"===" = e === t, // false | |
"e hashcode" = system.identityHashCode(e), // one thing | |
"t hashcode" = system.identityHashCode(t) // a different thing | |
]) | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment