[M3devel] imports anywhere?
Jay
jayk123 at hotmail.com
Mon Feb 11 13:48:23 CET 2008
Here is another SMALL gripe with the language.
The need to put IMPORTS at the top (or is it just common style?), leads to something I have seen several times.
You comment out some code, thereby deleting the only/last use of some import, that nets you warnings about unused imports. Granted, they are "only" warnings, but I try to have none. Also granted, you can either comment out or just go ahead and remove the imports, easy.
It might be nice if the IMPORTS could be adjacent to the code using the IMPORTS, so that they can be comment out or removed together.
This "problem" is not unique to Modula-3, by far.
In fact, Modula-3 is probably more able to warn about this low cost waste due to its much better module system, compared to say, C and C++ #includes...
- Jay
> Date: Mon, 11 Feb 2008 12:12:56 +0000> To: m3commit at elegosoft.com> From: jkrell at elego.de> Subject: [M3commit] CVS Update: cm3> > CVSROOT: /usr/cvs> Changes by: jkrell at birch. 08/02/11 12:12:56> > Modified files:> cm3/m3-ui/ui/src/winvbt/: WinScreenType.m3 > > Log message:> fix warning about unused import (the use is commented out..would be nice> to be able to move the import to near the code so they can be commented> out together..)>
_________________________________________________________________
Shed those extra pounds with MSN and The Biggest Loser!
http://biggestloser.msn.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20080211/481f9a3f/attachment-0001.html>
More information about the M3devel
mailing list