Use this file to discover all available pages before exploring further.
Hades provides two sequential collection types: lists are the fully-implemented, mutable workhorse container you use for most data; records are an immutable sequence type described in the language specification but not yet executed by the current interpreter.
Records are described in the Hades language specification but are not yet implemented in the current interpreter. There is no RecordNode in the parser and no record handler in the interpreter. The rec type hint keyword listed in the README is also absent from the interpreter’s recognised type hints. The syntax below documents the planned design; using it in the current release will produce an error.
A record is planned as an immutable sequence declared as a comma-separated string literal enclosed in double quotes. Unlike lists, records would require no element type hints and could not be modified after creation.
// Planned syntax — records are not yet supported by the interpretercoords: record = "10, 20, 30";weekdays: record = "Mon, Tue, Wed, Thu, Fri";
// Build a list of test scores, update it, and report resultsscores: list = [72, 85, 90, 68, 95];// Fix a data-entry errorscores->0 = 75;// Find the sum manuallytotal: int = 0;for (s: int; s in scores) { total += s}print('Total: ', total); // Total: 413print('Count: ', len(scores)); // Count: 5// Check membershipif (95 in scores) { print('Top score present')}
Lists are the primary collection type in the current interpreter. Use them for any ordered, mutable data. Record support is planned for a future release.