News for hackers. Stuff that matters.
Re:Ask HN: At what proficiency do you consider 'knowing' a l... by aerovistae on Thursday June 11, 2015 @12:12PM (#9700536)
Whoa, hold on, since when is 'is' preferred over '=='? What kind of python are you writing over there? Those are for totally different purposes. One tests equality while the other tests identity.
Re:Ask HN: At what proficiency do you consider 'knowing' a l... by clintonc on Thursday June 11, 2015 @01:35PM (#9701104)
For example, 'if x == None' versus 'if x is None'. The latter is to be preferred (since identity is faster and more clear than comparison), but you see the former sometimes.
Re:Ask HN: At what proficiency do you consider 'knowing' a l... by aerovistae on Thursday June 11, 2015 @06:18PM (#9702816)
Yes that's the only case I know of where 'is' is regularly used.