[devhelp] HACKING file: explain why the g_auto macros are not used
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp] HACKING file: explain why the g_auto macros are not used
- Date: Sat, 16 Jun 2018 15:04:37 +0000 (UTC)
commit 077f601c2f2d0e4ba7d3ff9a30b2abf84a071234
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sat Jun 16 16:59:05 2018 +0200
HACKING file: explain why the g_auto macros are not used
HACKING | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/HACKING b/HACKING
index 8e5e36c2..10ebcfe5 100644
--- a/HACKING
+++ b/HACKING
@@ -25,6 +25,13 @@ GObject classes must not be created with a G_DECLARE macro, it causes more
problems than it solves:
https://blogs.gnome.org/swilmet/2015/10/10/changing-quickly-between-a-final-and-derivable-gobject-class/
+g_auto macros are not used, because:
+1. It makes debugging more difficult in case of a memory handling problem.
+2. It breaks the uniformity of memory handling in C. Uniformity is an important
+ principle for programming language design, as explained in the book
+ “The Psychology of Computer Programming”:
+ https://www.amazon.com/Psychology-Computer-Programming-Silver-Anniversary/dp/0932633420/
+
See also:
https://developer.gnome.org/programming-guidelines/unstable/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]