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