summaryrefslogtreecommitdiff
path: root/notes/index_types.txt
blob: 6a70774ffbe18cb449fef8d50e0b068c8aeaab5c (plain)
1
2
3
4
5
6
7

index types
===========

    type ErrorType = enum (Unknown, FileNotFound, OutOfMemory)

    const [index ErrorType]String errorMessages = ["Unknown", "File not found", "Out of memory"];
    const List<index ErrorType,String> errorMessages = ["Unknown", "File not found", "Out of memory"];