<p>What are some syntaxes that programming languages have used, to note that a specific thing has a specific type?</p><p>The two standards seem to be the C &quot;prefix&quot;</p><p>int x / (int) x</p><p>and the increasingly popular ML colon</p><p>x: int</p><p>In the languages I&#39;ve made I like using : for structural purposes, like (if x: print abcd). And &quot;typename then a space&quot; is so fucking messy, so I&#39;m wondering about what alternatives could feel natural.</p>
Reply