sapphire-lang 0.8.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
# Float represents a 64-bit floating point number.
# Inherits numeric helper methods from Num.
#
#   x = 3.14
#   x.positive?()  # true
#   x.abs        # 3.14
#   x.is_a?(Num)   # true
#
class Float < Num {
  def zero?() { self == 0.0 }
}