On Sat, Aug 30, 2025 at 10:15:26PM +0000, Brother Bill via Digitalmars-d-learn 
wrote:
> For the modern D developer, which is the more preferred choice, to use
> 'is' or '=='?
[...]

They have two different meanings.  `is` is for determining identity (is
this the same variable); whereas `==` is for comparing values (do these
two variables have the same value).  They are not interchangeable.


T

-- 
There are 10 kinds of people in the world: those who can count in binary, and 
those who can't.
  • is vs == Brother Bill via Digitalmars-d-learn
    • Re: is vs == monkyyy via Digitalmars-d-learn
    • Re: is vs == Steven Schveighoffer via Digitalmars-d-learn
    • Re: is vs == IchorDev via Digitalmars-d-learn
    • Re: is vs == H. S. Teoh via Digitalmars-d-learn

Reply via email to