I have three. This doesn't actually tell you anything about type, and
requires less code change later when that simple type becomes a complex
type. Why rely on the compiler to perform an optimization that it has no
obligation to perform?

Honestly whatever the project feels is best, but document it and enforce it.

On Sat, Jun 6, 2015, 3:57 AM Musikpirat <mi...@christian-hufgard.de> wrote:

> Hi,
>
> Am 05.06.2015 um 22:44 schrieb Owen Williams:
> > On Fri, 2015-06-05 at 22:30 +0200, Daniel Schürmann wrote:
> >
> >> CSAMPLE sample = 0.0;
> >
> > This one.  auto should really only be used when assigning from a
> > function whose return value is obvious.
>
> What is the advantage of not knowing what kind of object you are working
> with? I'm a java developer (and not a mixxx developer ;) and one of the
> greatest things in java was the introduction of typed lists and generics.
>
> Of course the IDE does help you when hovering an object or with code
> completion. But I believe coding goes much faster if you know the type -
> and what you can do with it.
>
> Christian
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Get Mixxx, the #1 Free MP3 DJ Mixing software Today
> http://mixxx.org
>
>
> Mixxx-devel mailing list
> Mixxx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mixxx-devel
------------------------------------------------------------------------------
_______________________________________________
Get Mixxx, the #1 Free MP3 DJ Mixing software Today
http://mixxx.org


Mixxx-devel mailing list
Mixxx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mixxx-devel

Reply via email to