HackerTrans
TopNewTrendsCommentsPastAskShowJobs

EFruit

no profile record

comments

EFruit
·há 10 anos·discuss
Note that I didn't say I want to use Go, nor are all my points taken from Go (namely the namespace feature). I did not mention automatic memory management, I did not say the standard library needs to handle XML, and I still did not advocate that the syntax be so strict.
EFruit
·há 10 anos·discuss
If I could change C, I would look closely at Go.

To be more precise, I would

- Quit separating definition and implementation (.h & .c vs. the singular .go)

- Implement multiple returns

- Replace #include with something a bit closer to Go's import (Package name and in-body identifier are decoupled)

- Methods on any user-defined type

- Finally, something namespace-like because

  library_thing_return_t *library_thing_doing_something_else(libraty_thing_param_t *in)
seems unsustainable to me.