git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: what if i use makeheader tool to generate c header file, it would be accepted.

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 21, 2022, 16:28 UTC
Message-ID
<xmqqpmfo66b2.fsf@gitster.g>
In-Reply-To
<CA+J78MWvOEbJY6+NcLFn0SJGMZn=N7QUMwc=Bta+uHicvD892w@mail.gmail.com>
Skrab Sah <skrab.sah@gmail.com> writes:
> Let me elaborate to you, how and why I wanted to implement the

No, I won't let you ;-), and that was the most important part you seem to have missed in the message you are responding to: we do not work with the handwaving.

>     2. no need to declare anything in the header file, which is
> time consuming and a headache for developers.
This alone is enough to convince me that this should not be done.

Unless the tool can infer the intent while generating the headers and place comments describing why it exists and what it and its parameters mean next to the function definition it produces, that is, in which case I may be OK. As developers become more and more experienced, they will invest more and more time in getting the interface right. We shouldn't target developers who find the time to do so a waste and headache.

Thanks.
Previous: Skrab Sah
Message 11 of 11 in “what if i use makeheader tool to generate c header file, it would be accepted.”
  1. Skrab SahSep 19, 2022
  2. Ævar Arnfjörð BjarmasonSep 19, 2022
  3. Junio C HamanoSep 19, 2022
  4. Skrab SahSep 20, 2022
  5. Ævar Arnfjörð BjarmasonSep 20, 2022
  6. Skrab SahSep 21, 2022
  7. Đoàn Trần Công DanhSep 21, 2022
  8. Skrab SahSep 21, 2022
  9. Ævar Arnfjörð BjarmasonSep 23, 2022
  10. Skrab SahSep 24, 2022
  11. Junio C HamanoSep 21, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.