Slide 15
Slide 15 text
The Ruby signature language
• Ruby-like but different syntax
• Defines the structure of Ruby programs
• Classes, modules, interfaces, and mixin
• Methods and instance variables
• Generics, unions, tuples, optionals, ...
• Covers most of the standard libraries
class Array[A]
include Enumerable
def []=: (Integer, A) -> A
def []: (Integer) -> A?
def each: { (A) -> void } -> self
def partition: { (A) -> bool } ->
[Array[A], Array[A]]
...
end
WIP