Case-sensitivity of identifiers: Difference between revisions

added a solution for Factor
(added a solution for Factor)
Line 445:
sequence DOG = "Bernie"
printf( 1, "The three dogs are named %s, %s and %s\n", {dog, Dog, DOG} )</lang>
 
=={{header|Factor}}==
Factor identifiers are case-sensitive.
<lang factor>IN: scratchpad [let
"Benjamin" :> dog
"Samba" :> Dog
"Bernie" :> DOG
{ dog Dog DOG } "There are three dogs named %s, %s, and %s." vprintf
]</lang>
{{out}}
<pre>
There are three dogs named Benjamin, Samba, and Bernie.
</pre>
 
=={{header|Forth}}==
1,827

edits