> Are you thinking of an optimization that reduces the code size be reducing 
> duplicate code
> paths?

No.

> Or an optimization that helps factor out common paths for a programmer to 
> read?

Yes.

> I like the idea of more re-factoring (!!) and some of @erg's plans involve a 
> parser
> that will enable new tools to be built, but I'm curious what your main 
> motivation is...

Imagine a command-line tool that inputs factor source and outputs line
numbers that contain duplicate code.

This tool could be a stepping stone for integration with an editor.

The integrated tool could highlight duplicate code and prompt the user
to enter the name for a new word.  When the user hits enter, the new
word is defined and the duplicate code is replaced with calls to the
word.

It seems that the "refactorability" of Factor would make the language
particularly amenable to this type of tool.

Not sure if such a tool already exists, though.

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to