]> ocean-lang.org Git - ocean-D/blob - 00-TODO
ac474b28506bfa2ff427392fd1a5c566284d59d6
[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 - integers, unsigned, bitfield, float, double?
27 - pointers
28    - owned or borrowed
29    - pure, loaded, overloaded, augmented
30    - owned: once, counted, collected
31    - shared or thread-local
32 - array slice
33 - array buffer - can be added to and grows.
34 - char, string search, regexp search
35
36 - allow "do stuff" as a stand-alone statement (scope)
37 - 'use' labels *must* appear in case statements.
38
39 Next version (Govetts Creek):
40 - functions and procedures
41 - Finalize what a "main" program looks like.
42
43 Much later
44 - per-field attributes
45     constant, stable, add-only, read-only, mutable, owned, borrowed, dependant, pure
46 - records
47 - enum
48 - classes
49    - constructors and destructors - or "after" ??
50    - vtables, fat pointers, list of approaches
51 - operators as interface methods
52 - interfaces, inheritance
53 - modules, imports and exports
54 - closures, threads, co-routines, generators
55 - introspection / reflection ?
56       e.g. support serialization
57       find function given a string holding the name
58       measure coverage, adjust based on performance metrics
59       auto-create mock objects
60       Is this just parsing the details in the obj file?
61 - % formatting
62 - string / slice / strbuf
63 - parsing library - sscanf equiv, regexp, LALR
64 - FFI
65 - GTK
66 - sockets / http / HTML
67 - parameterised types, and dependant types
68 - message passing primitives
69 - overloading for numbers
70 - exceptions ??
71 - ensure list_head type concept can work
72 - "union" type ??
73 - pattern matching for destructuring??
74 - casts??
75 - typeswitch?
76 - iso suffixes for number?
77 - foreach?
78 - case fall-through or go-to
79 - break/continue or "next","last"
80 - algebraic types