Point p = getPoint();
int x = p.x();
int y = p.y();
Enhanced way: Point(int x, int y) = getPoint();
This also supports nested patterns, allowing you to reach deep into an object hierarchy in one go: Circle(Point(int x, int y), double radius) = getCircle();
* Pattern Matching in Enhanced for Loops for (Circle(Point(int x, int y), double radius) : circles) {
// Directly use x, y, and radius here
} 1. Default (recommended) Opus 4.6 · Most capable for complex work
2. Opus (1M context) Opus 4.6 with 1M context · Billed as extra usage · $10/$37.50 per Mtok
3. Sonnet Sonnet 4.6 · Best for everyday tasks
4. Sonnet (1M context) Sonnet 4.6 with 1M context · Billed as extra usage · $6/$22.50 per Mtok • Wage Level IV → 4 entries
• Wage Level III → 3 entries
• Wage Level II → 2 entries
• Wage Level I → 1 entry
A “unique beneficiary” is counted once toward numerical allocations, no matter how many registrations are submitted for them or how many entries they get in the weighted pool.