Thrift is an actively used interface design language created in 2007.

12Years Old 5,240Users 0Jobs

Example code from the web:

enum PhoneType {
 HOME,
 WORK,
 MOBILE,
 OTHER
}

struct Phone {
  1: i32 id,
  2: string number,
  3: PhoneType type
}

service PhoneSvc {
  Phone findById(1: i32 id),
  list<Phone> findAll()
}

Example code from Linguist:

struct PullRequest {
  1: string title
}


Example code from Wikipedia:

enum PhoneType {
  HOME,
  WORK,
  MOBILE,
  OTHER
}

struct Phone {
  1: i32 id,
  2: string number,
  3: PhoneType type
}

service PhoneSvc {
  Phone findById(1: i32 id),
  list<Phone> findAll()
}
Edit

Last updated February 11th, 2019