← Back to team overview

kicad-developers team mailing list archive

Re: New "Library Convention" and his influences with current EEschema code

 

On Sun, May 11, 2014 at 02:32:58PM +0200, Lorenzo Marcantonio wrote:
> On the extreme that should be really an inline const member function, or
> an utility function taking the pin as an argument. A local function in
> the implementation for the pin is IMHO the neater solution (no need for
> fattening the interface).

Clarification: a function and not computed on the spot because it's used
both in drawing and in plotting. So if the idea is to keep it
modifiable, some common way of obtaining the value is needed to keep the
result the same.

It's difficult to adjust to the degree of functional subdivision
wanted/required by a project... sometime people prefers less functions
for trivial things confined to a single file like these and sometimes
aggressive decomposition is preferred. No problem with both, still need
to 'tune' the required style.

-- 
Lorenzo Marcantonio
Logos Srl


Follow ups

References