Case-sensitivity of identifiers: Difference between revisions
Content added Content deleted
No edit summary |
(Added Dart) |
||
Line 493: | Line 493: | ||
Output: |
Output: |
||
<pre>There are three dogs named Benjamin, Samba, and Bernie'</pre> |
<pre>There are three dogs named Benjamin, Samba, and Bernie'</pre> |
||
=={{header|Dart}}== |
|||
Dart names are case sensitive |
|||
note: The name of the variables 'Dog' and 'DOG' is not a lowerCamelCase identifier. |
|||
<syntaxhighlight lang="dart">void main() { |
|||
String dog = "Benjamin", doG = "Smokey", Dog = "Samba", DOG = "Bernie"; |
|||
print("The four dogs are named $dog, $doG, $Dog and $DOG"); |
|||
}</syntaxhighlight> |
|||
{{out}} |
|||
<pre>The four dogs are named Benjamin, Smokey, Samba and Bernie</pre> |
|||
=={{header|dc}}== |
=={{header|dc}}== |
||
A register name has only one character, so this example uses 'd' and 'D'. |
A register name has only one character, so this example uses 'd' and 'D'. |