[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Naming question for get_property, set_property
From: |
Joram Noeck |
Subject: |
Re: Naming question for get_property, set_property |
Date: |
Tue, 11 Feb 2020 11:48:58 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 |
FWIW, python has getattr and setattr which would perhaps suggest
get_prop(grob, "property") and
set_prop(grob, "property", VALUE)
I am not a fan of "arbitrary abbreviations" and get_property and
set_property are only 4 characters longer. So maybe I would choose the
latter (modulo your naming conventions w.r.t case) – just as one more
data point, feel free to ignore it.
Joram
Re: Naming question for get_property, set_property, Han-Wen Nienhuys, 2020/02/11