Skip to content

Commit 2e26deb

Browse files
authored
Merge pull request #821 from nxadm/master
Choose beter constant examples (pi is alreay a builtin term)
2 parents 8ed43c4 + 0397c1f commit 2e26deb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/Language/terms.pod6

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ Variables are discussed in the L<variable language docs |/language/variables>.
174174
X<|constant (Terms)>
175175
Constants are declared with C<constant> and do not require a sigil. The RHS is evaluated at compile time, what may be too early to make sense.
176176
177-
constant Pi = 3.123; # if you happen to be Babylonian
177+
constant SpeedOfLight = 299792458 # m/s
178+
constant PHI = 1.61803398875 # The golden ratio is everywhere!
179+
178180
179181
=end pod

0 commit comments

Comments
 (0)