Naming conventions: Difference between revisions

m
Line 499:
=={{header|Dyalect}}==
 
Dyalect keywords, variables, constants, function,and methodsfunctions etc.should are normallybe written using <code>camelCase</code>. This stays true for the module names. Type names, constructors and constructor namesmethods however use <code>PascalCase</code>:
 
<lang dyalect>var xs = Array.emptyEmpty(10)
var ys = Array(1, 2, 3)
var str = xs.toStringToString()
 
type Maybe = Some(x) or None()
Anonymous user