Case-sensitivity of identifiers: Difference between revisions

Add Zig example
(Added Chipmunk Basic, GW-BASIC, Minimal BASIC, MSX Basic Quite BASIC and XBasic)
(Add Zig example)
 
(One intermediate revision by one other user not shown)
Line 1,833:
=={{header|Wren}}==
Identifiers in Wren are case sensitive.
<syntaxhighlight lang="ecmascriptwren">var dog = "Benjamin"
var Dog = "Samba"
var DOG = "Bernie"
Line 1,842:
The three dogs are named Benjamin, Samba and Bernie.
</pre>
 
=={{header|XBS}}==
In XBS variable names are case-sensitive.
Line 1,868 ⟶ 1,869:
switch (/c) is to detect inconsistent capitalizing of names such as
Ascii and ASCII or CpuReg and CPUReg.
 
=={{header|Zig}}==
In Zig identifiers are case-sensitive.
 
<syntaxhighlight lang="zig">const std = @import("std");
 
pub fn main() void {
const dog = "Benjamin";
const Dog = "Samba";
const DOG = "Bernie";
 
std.debug.print("The three dogs are named {s}, {s}, and {s}.\n", .{ dog, Dog, DOG });
}</syntaxhighlight>
 
{{out}}
<pre>
The three dogs are named Benjamin, Samba, and Bernie.
</pre>
 
=={{header|zkl}}==
<syntaxhighlight lang="zkl">var dog = "Benjamin", Dog = "Samba", DOG = "Bernie";</syntaxhighlight>
28

edits