sapphire-lang 0.7.0

Gradually typed scripting language where every value is an object and types are optional, checked at runtime
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Bool is the type of true and false.
#
class Bool {
  def nil? { false }

  # Returns "true" or "false" as a string.
  #
  #   true.to_s    # "true"
  #   false.to_s   # "false"
  #
  def to_s {
    if self { "true" } else { "false" }
  }
}