<p dir="auto">Here is an example:</p>
<p dir="auto">julia&gt; x = 2<br>
2</p>
<p dir="auto">julia&gt; x.2<br>
0.4</p>
<p dir="auto">I'm very new to Julia--I just downloaded it today--so I'm not sure if this the "bug" I'm reporting is desired behavior, and I'm also not sure if the vocabulary I'm using to describe it is correct for Julia:</p>
<p dir="auto">As I was playing around with Julia, I was surprised to find that attempting to access attributes of a variable using an integer is interpreted as multiplying the variable by a constant:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="~/repos/julia$ ./julia 
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type &quot;help()&quot; to list help topics
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.3.0-prerelease+2917 (2014-05-06 14:30 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit 32b5cce (0 days old master)
|__/                   |  x86_64-linux-gnu

julia&gt; x = 4
4

julia&gt; x.3
1.2

julia&gt; "><pre class="notranslate"><code class="notranslate">~/repos/julia$ ./julia 
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "help()" to list help topics
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.3.0-prerelease+2917 (2014-05-06 14:30 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit 32b5cce (0 days old master)
|__/                   |  x86_64-linux-gnu

julia&gt; x = 4
4

julia&gt; x.3
1.2

julia&gt; 
</code></pre></div>
<p dir="auto">I think I understand what's going on here--<code class="notranslate">x.3</code> is the same thing as <code class="notranslate">.3x</code>.  Now, I think it's very cool that Julia permits syntax like <code class="notranslate">.3x</code>, but it just seems to me like you'd want <code class="notranslate">x.3</code> to raise a syntax error instead.</p>