On 19/02/2013, at 5:39 PM, Dobes Vandermeer wrote: > You might consider requiring that includes appear at the start of the file, > to avoid others getting bitten as well.
Yes, i could require that, or at the end would do. However it's trickier to enforce. Personally I find all kinds of "include" abhorrent. A "requires" is more sane, and probably the right name for this feature considering how it works. In any case I regard "include" as a kind of temporary feature until a better one can be devised. The relationship between program structures and the filesystem is always a pain. A really good design here would be nice. C's method is the most flexible with the worst modularity properties. Python import, Ocaml's method, etc, provide much stronger coupling between "file" and "module" which is also nasty because it interferes too much with refactoring. Felix splits "class" and such namespace things off from the file system. This provides more flexibility, but it costs as well: a superior pain to do: include "mystuff"; open mystuff; although C++ has that too: #include "mystuff.hpp" using namespace mystuff; Another questionable feature can be seen in src/lib/std/__init__.flx which just includes everything. All of this is insignificant if one goes to Literate Programming but most people hate that because it's hard to configure an editor to handle it well, let alone an IDE. I'm not an IDE man although I was an early user of the very first and easily the best IDE ever producted: Turbo Pascal. And that revolutionised programming. but it would be foolish to stand in the way of those who like (or are forced) to use an IDE. The only way to get LP and an IDE is probably a modified kind of online WIki thing. -- john skaller skal...@users.sourceforge.net http://felix-lang.org ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb _______________________________________________ Felix-language mailing list Felix-language@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/felix-language