Lily is a programming language created in 2011.
#709on PLDB | 12Years Old | 1.2kUsers |
1Books | 0Papers |
An interpreted language with a focus on expressiveness and type safety
scoped enum Color { Black, Blue, Cyan, Green, Magenta, Red, White, Yellow }
class Terminal(public var @foreground: Color, width_str: String)
{
public var @width = width_str.parse_i().unwrap_or(80)
public define set_fg(new_color: Color) {
@foreground = new_color
}
}
var terms = [Terminal(Color.White, "A"), Terminal(Color.Red, "40")]
terms.each(|e| e.width += 20 )
|> print
Feature | Supported | Token | Example |
---|---|---|---|
Comments | ✓ | ||
Semantic Indentation | X |
title | authors | year | publisher |
---|---|---|---|
The Lily and the Cross: A Ring and Crown Novel | de la Cruz, Melissa | 2017 | Independently published |