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
# String represents UTF-8 text. Literal strings support interpolation with #{ }.
# Additional methods are defined in the VM/runtime; this class adds protocol helpers.
#
class String {
  # Returns self. Strings already print as their text content.
  #
  #   "hi".to_s   # "hi"
  #
  def to_s { self }
}