What I Wish C Did

This is a list of C feature requests. Since Ki already focuses on safety, wishes mitigated by that goal are omitted.

  • Data structures
    • string
    • array
      • parray
    • linked list
    • table
    • set
    • queue (deque)
  • Better types
    • Type safety
    • First-class types
    • Derivative types
  • Nicer fixed-width types (u8, s8, etc.)
  • Better support for working with functions
    • Nicer function pointer syntax
    • Anonymous functions
  • Arbitrary precision numbers
  • More powerful iterators
    • For-each loop
  • UTF-8 everywhere
  • Module system
    • No preprocessor
    • No headers
  • Operator overloading
  • Namespaces
    • struct/component/type hierarchy
  • Generators/Coroutines
  • In-place initialization
  • Type inference
  • Consistent error signaling/handling
  • Access control (beyond opaque structs)