Keywords & Syntax
Affogato adds keywords and syntax sugar that lower to standard Java 21. Each entry shows the Affogato form and its Java equivalent.
Variables
Methods
keyword
func
Shorthand for void return type on methods.
keyword
init
Explicit constructor keyword — replaces the Java class-name constructor.
keyword
override
Marks a method that overrides a superclass or interface member.
syntax
Named arguments
Call-site argument labels: name = value.
syntax
Optional new
Constructor calls work with or without the new keyword.
syntax
Trailing closures
Block after a call binds to the last parameter.
Control Flow
Operators
Types
Collections
Literals
18 entries · Back to full docs