Top 1,000 Features Creators Resources Blog Explorer Download
GitHub icon

Pizza

< >

Pizza is a programming language created in 2001.

#833on PLDB 23Years Old

Pizza is an open-source superset of Java 1.4, prior to the introduction of generics for the Java programming language. In addition to its own solution for adding generics to the language, Pizza also added function pointers and algebraic types with case classes and pattern matching. In August 2001, the developers made a compiler capable of working with Java. Read more on Wikipedia...


Example from hello-world:
class HelloWorld { public static void main(String[] args) { System.out.println("Hello World"); } }
Example from Wikipedia:
public final class Main { public int main(String args[]) { System.out.println( new Lines(new DataInputStream(System.in)) .takeWhile(nonEmpty) .map(fun(String s) -> int { return Integer.parseInt(s); }) .reduceLeft(0, fun(int x, int y) -> int { return x + y; })); while(x == 0) { map.create.newInstance() } } }

Language features

Feature Supported Token Example
Strings ✓ "
"Hello world"
Print() Debugging ✓ System.out.println

View source

- Build the next great programming language · About · Acknowledgements · Extensions · Day 630 · Donate · feedback@pldb.io