资 源 简 介
The Virgil Programming Language
Virgil is a fast and light programming language which balances object-oriented, functional, and procedural programming features. It integrates classes, functions, tuples, and type parameters and offers an advanced optimizing compiler for both the JVM and native platforms.
```
def main() {
System.puts("Virgil III is fast and lightweight!
");
}```
Features
Virgil III focuses on balancing four main features in a statically-typed language:
Classes - for basic object-oriented programming
Functions - for small-scale reuse of functionality
Tuples - for efficient aggregation and uniform treatment of multi-argument functions
Type parameters - for powerful and clean abstraction over types
Balance and Design
Dovetailing a small set of features into one whole is a challenging design process, both syntactically and semantically. Surprising