]> ocean-lang.org Git - ocean-D/blob - 00-TODO
updates
[ocean-D] / 00-TODO
1 This is a living document - delete things when done.  Avoid discussion.
2
3 Current version (Cataract Creek)
4 - structs
5    - const fields ... what does that mean?  Assign once as initialization?
6       Can be used for array size? What else?
7    - anonymous field - array or struct (or pointer to these)
8       multiple anon struct are allowed if they don't conflict
9    - [] can apply to anon array field
10    - anon struct field gets fields interpolated
11
12    - anon fields have no name before the :, so
13         struct foobar:
14                 :content
15                 size:number
16
17 - manifest values for arrays and structs [a,b,c]
18     or [.foo=a, .bar=b] or [ [1]=a, [2]=b]
19    That last doesn't parse easily, unless we require tags... not a good idea.
20    [ .[1] = a, .[2] = b ] ?? Maybe.
21    or () to group, [] for index. To (.foo=a) ( [1] = b )
22 - yet more operators
23      << >> #
24      bit-ops & | ~ &~
25      op=
26 - split values so I can have an array of just the value (1 byte for u8)
27 - integers, unsigned, bitfield, float, double?
28 - pointers
29    - owned or borrowed
30    - pure, loaded, overloaded, augmented
31    - owned: once, counted, collected
32    - shared or thread-local
33 - array slice
34 - array buffer - can be added to and grows.
35 - char, string search, regexp search
36
37 - allow "do stuff" as a stand-alone statement (scope)
38 - 'use' labels *must* appear in case statements.
39 - re-read parsergen lit-doc and make sure it is still coherent.
40
41 Next version (Govetts Creek):
42 - functions and procedures
43 - Finalize what a "main" program looks like.
44
45 Much later
46 - per-field attributes
47     constant, stable, add-only, read-only, mutable, owned, borrowed, dependant, pure
48 - records
49 - enum
50 - classes
51    - constructors and destructors - or "after" ??
52    - vtables, fat pointers, list of approaches
53 - operators as interface methods
54 - interfaces, inheritance
55 - modules, imports and exports
56 - closures, threads, co-routines, generators
57 - introspection / reflection ?
58       e.g. support serialization
59       find function given a string holding the name
60       measure coverage, adjust based on performance metrics
61       auto-create mock objects
62       Is this just parsing the details in the obj file?
63 - % formatting
64 - string / slice / strbuf
65 - parsing library - sscanf equiv, regexp, LALR
66 - FFI
67 - GTK
68 - sockets / http / HTML
69 - parameterised types, and dependant types
70 - message passing primitives
71 - overloading for numbers
72 - exceptions ??
73 - ensure list_head type concept can work
74 - "union" type ??
75 - pattern matching for destructuring??
76 - casts??
77 - typeswitch?
78 - iso suffixes for number?
79 - foreach?
80 - case fall-through or go-to
81 - break/continue or "next","last"
82 - algebraic types