-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sat, 02 May 2009 09:27:51 +0200
Christoph Mallon <christoph.mal...@gmx.de> mentioned:

> I also have to object, that it leads to hunting for declarations. 
> Actually it usually reduces scrolling around in the code: Many variables 
> are only assigned once. A typical example is getting the softc of a 
> device; especially there the type is important, because 
> device_get_softc() returns void*. So it is very convenient to have this 
> single assignment and its declaration at the same place. Not only the 
> type of a variable is important, but also its value, so this assignment 
> needs to be looked up, too. Doing declaration and initialisation at once 
> you only have to look at one place instead of two. If you use vim as 
> editor, then the current way makes it hard to find this assignment: "gd" 
> jumps only to the declaration, the assignment is somewhere else. But if 
> the declaration and the only assignment are the same, you get both at 
> the same place and time.

You're talking about automatic text processing tools, which is an entirely
different subject. If your current tool can't handle the code, it may be
the time to improve the tool or change it. Tools can be improved, people
can't. By 'hunting for declarations' it usually meant that it is hard to
find pieces of the code by looking into it, not that tools can't handle
the task.

- -- 
Stanislav Sedov
ST4096-RIPE
-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAkoP500ACgkQK/VZk+smlYGO7QCeM3HRKTMqp54SIo28eBN86vc5
fZcAniVfL+cY4rhP/ulp0MQFbxD+twwL
=hJYk
-----END PGP SIGNATURE-----

!DSPAM:4a0fe72c994292017410001!


_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Reply via email to