title: Twig same as operator
body: <p>When comparing in PHP, it is advisable to use <code>===</code> instead of <code>==</code> due to intransitive nature and quirks like <code>"5 is not a number" == 5</code>.</p>
  
  <p>By that guideline, does it mean that the <a href="http://twig.sensiolabs.org/doc/tests/sameas.html" rel="nofollow"><code>same as</code></a> operator should be used instead of <code>==</code> in Twig?:</p>
  
  <pre><code>{# "Wrong" #}
  {% if foo.bar == 3 %}
  
  {# Better #}
  {% if foo.bar is same as(3) %}
  </code></pre>
  
  <p>And likewise for <code>is not same as</code> versus <code>!=</code>.</p>