← Back to team overview

dolfin team mailing list archive

Re: Function names

 

> On Thu, Sep 18, 2008 at 05:17:59PM +0100, Garth N. Wells wrote:
>>
>>
>> Anders Logg wrote:
>> > On Wed, Sep 17, 2008 at 09:05:04AM +0200, Ola Skavhaug wrote:
>> >> Anders Logg skrev den 16/09-2008 følgende:
>> >>> We use lowerCamelCase for function names, but this looks a little
>> >>> silly when we map function names in the the wrapper classes DofMap
>> >>> and FiniteElement:
>> >>>
>> >>>   ufc::dof_map::global_dimension() -->
>> dolfin::DofMap::globalDimension()
>> >>>
>> >>> Do we want to keep using lowerCamelCase for function names, or
>> should
>> >>> we use global_dimension() etc?
>> >>>
>> >>> A change should not be very visible in the user interface, partly
>> >>> because I think lowerCamelCase looks ugly and have tried to avoid
>> >>> using it in the past (which is why many functions have short and
>> >>> cryptic names like init(), update()...). :-)
>> >> I think consistency is more important than aesthetics :)
>> >>
>> >> CamelCaps and function names with _ is, as far as I see it,
>> consistent.
>> >>
>> >> Ola
>> >
>> > Other opinions? Garth?
>> >
>>
>> I don't have a strong opinion other than liking consistency.
>>
>> Garth
>
> Then I suggest we change to lower-case and underscore for function
> names.
>
> Then it will be consistent all over for DOLFIN, FFC, UFC (except for
> class names), and UFL.

I think this is a good idea.

/Johan

> --
> Anders
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/dolfin-dev
>




References