you have experienced the difference between structural and physical equality.
<>
is to =
(structural equality) as !=
is to ==
(physical equality)
"odg" = "odg" (* true *) "odg" == "odg" (* false *)
is false because each is instantiated in different memory locations, doing:
let v = "odg" v == v (* true *) v = v (* true *)
Most of the time you’ll want to use =
and <>
.
edit about when structural and physical equality are equivalent:
You can use the what_is_it function and find out all the types that would be equal both structurally and physically. As mentioned in the comments below, and in the linked article, characters, integers, unit, empty list, and some instances of variant types will have this property.
Related Posts:
- OCaml: Match expression inside another one?
- When is K 1024 and when is it 1000?
- Dial pad to get phone number (with Android button images)
- Why is it not possible to fake an IP address?
- Authentication versus Authorization
- What is tail recursion?
- Visual List of iOS Fonts?
- How to get rid of the “No bootable medium found!” error in Virtual Box? [closed]
- ‘git’ is not recognized as an internal or external command
- what is svn? and how to use it with project?
- How can I write a `try`/`except` block that catches all exceptions?
- How do I decompile a .dll file?
- What’s the purpose of git-mv?
- How to write trycatch in R
- how to use proxy on youtube-dl?
- Assembly’s manifest definition does not match assembly reference
- “unrecognized selector sent to instance” error in Objective-C
- Java – No enclosing instance of type Foo is accessible
- Center Plot title in ggplot2
- what is the difference between OLE DB and ODBC data sources?
- How to use PHP’s password_hash to hash and verify passwords
- How to create a custom coder?
- Git push won’t do anything (everything up-to-date)
- How to use vmImage on pipeline using Azure DevOps Server?
- git add . -> still “nothing to commit” with new files
- git submodule add error: does not have a commit checked out
- “The certificate chain was issued by an authority that is not trusted” when connecting DB in VM Role from Azure website
- What’s the complete range for Chinese characters in Unicode?
- Is there an operation for not less than or not greater than in python?
- Resource interpreted as stylesheet but transferred with MIME type text/html (seems not related with web server)
- how to uninstall MinGW and make cygwin ‘make’ as deafult make program with gcc 3.8.1
- Cosine similarity and tf-idf
- Optional Parameters in Go?
- PostgreSQL: Remotely connecting to Postgres instance using psql command
- Android – Package Name convention
- How to execute an oracle stored procedure?
- How do I time a method’s execution in Java?
- -bash: export: `=’: not a valid identifier
- Error “The goal you specified requires a project to execute but there is no POM in this directory” after executing maven command
- Unable to convert 3d ply file image to 2d image
- Get a random item from a JavaScript array
- Plotting horizontal and vertical lines in Mathematica
- Error while waiting for device: Time out after 300seconds waiting for emulator to come online
- How to transparent Unity3D custom shader?
- Converting string to integer VB.NET
- Remove node_modules from git in vscode
- Is it valid to have a html form inside another html form?
- what is shortcut command to kill process in windows command?
- Differentiate between function overloading and function overriding
- Why is the minidlna database not being refreshed?
- java.sql.SQLException: Fail to convert to internal representation
- Representing EOF in C code?
- How to disable an Android button?
- How to set initial value and auto increment in MySQL?
- Chrome Broweser: csi.gstatic.com keeps loading
- How do you convert an entire directory with ffmpeg?
- What’s the difference between sx and σx in the statistics calculations on a TI-Nspire?
- Apache Kafka vs Apache Storm
- How can an Admin access the Google Drive contents of all the users in a particular domain?
- PSEXEC, access denied errors
- How do you define a global function in C++?
- A _disk_id.pod file appears on a windows flash drive
- What standard do language codes of the form “zh-Hans” belong to?
- What is the proof of of (N–1) + (N–2) + (N–3) + … + 1= N*(N–1)/2
- Merge posts plugin? [closed]
- database collation differences
- Add Woocommerce product to cart with Contact Form 7 [closed]
- How to See Everything in get_option()?
- How can I prevent the WordPress Importer from munging double-newline paragraph breaks to a single newline?
- Slow WP Site, theme.php not caching? Up to 25 second load time! [closed]
- A Compare And Distinction Essay Define To Beat Writer’s Block
- 27 Outstanding Faculty Essay Examples
- How to hide subfolder of static pages in WordPress using htaccess
- Javascript: Add anchor hashtag to URL, and reload
- To remove rendering of menus and header, plugin or theme?
- How do I deal with a compromised server?
- Something is burning in the server room; how can I quickly identify what it is?
- Finding out what user Apache is running as?
- Do systemd unit files have to be reloaded when modified?
- What is a glue record?
- How do I convert a .cer certificate to .pem?
- Run Oracle SQL script and exit from sqlplus.exe via command prompt
- Show full process name in top
- How do you do load testing and capacity planning for web sites?
- What is a good SSH server to use on Windows? [closed]
- In systemd, what’s the difference between After= and Requires=?
- Windows Server restart / shutdown history
- How do I set the global PATH environment variable on OS X?
- nmap find all alive hostnames and IPs in LAN
- Should CNAME Be Used For Subdomains?
- How do I create user accounts from the Terminal in Mac OS X 10.5?
- How to get a .pem file from ssh key pair?
- How to inspect remote SMTP server’s TLS certificate?
- Choosing between meaningful and meaningless hostnames [closed]
- logrotating files in a directories and its subdirectories
- Multiple TXT fields for same subdomain
- How to restart Nginx on Mac OS X?
- Do SPF Records For Primary Domain apply to subdomains?
- Why is the response on localhost so slow?
- apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName