Hacker News new | ask | show | jobs
by kazinator 3223 days ago
> Let's see what we can achieve by reworking C syntax ..

Without a shred of specification, only code: I predict, absolutely not a damn thing.

If code is your specification, then every time you type "git commit" you're changing the specification.

On the plus side, your code always implements the specification 100%, at all times.

The public and private stuff is irksome. Make one of them default. Have a way to declare that all names in a region of a file are public or private so that programmers don't have to repeat themselves.

   private: // default: can be omitted

   void helper_function_a(foo *f) { ... }

   void helper_function_b(foo *f) { ... }

   public:

   int api_function(...) { ... }