Rip is a functional, object-oriented programming language. "Hello World" is a simple one-liner:
- Types and lambdas are completely anonymous, just like every other object. To name anything you need to assign it to a reference or a property.
- Lambdas may be passed around like any other object.
- Lambdas are called by passing arguments in parenthesis.
Systemis a predefined reference with properties referencing standard types. Properties are lazy evaluated.
- Types have a property,
- Lambdas have a property,
thiskeyword when used inside a function).
Practically speaking Rip allows one to write code like the following:
base = URL.new("www.example.com", 80, :username, "password") url = base / :resource / :path ? :query: "search terms" ? :abc: :xyz expect(url.to_string()) to_equal "http://username:firstname.lastname@example.org/resource/path?query=search%20terms&abc=xyz"