Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trycf/98143d867a55faa560ae329192d255f1 to your computer and use it in GitHub Desktop.
Save trycf/98143d867a55faa560ae329192d255f1 to your computer and use it in GitHub Desktop.
TryCF Gist
<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