Skip to content

Instantly share code, notes, and snippets.

@vasily-kirichenko
Created July 14, 2012 08:28
Show Gist options
  • Save vasily-kirichenko/3110045 to your computer and use it in GitHub Desktop.
Save vasily-kirichenko/3110045 to your computer and use it in GitHub Desktop.
class Person
{
public Name: string;
public Age: int;
public this(requires (name != null && name.Length > 0) name: string,
requires (age > 0) age: int)
{
Name = name;
Age = age;
}
}
def person = Person("", 30);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment