On 10/10/2012, at 5:08 PM, Dobes Vandermeer wrote:
> 
> That only works with expressions. The word "test1" above should be viewed as a
> sequence of computations rather than a single function/generator.
> 
> I think the conditional of the "if" is an expression - won't it inherit the 
> "as" capability?

Yes, but the issue is like:

        if  x do 
                ...
       else
                var a = f blah;
                var b = g blo;
                if a - c do 
                        ...
                done
        done

> 
> There is a lot of "clean up" and streamlining possible in the code you 
> posted, it seems to have a lot of unnecessary duplication.

Yes but that kind of code has an advantage: it is easy to adapt.
If you factor the code so it has no duplication, that defines a structure
and it becomes hard to extend or modify if the structure doesn't hold.

In this case indeed that is about to happen. There's common code for
documenting class, fun, proc .. blah blah but i'm about to make
the code for each a bit more different ... its going to get longer with
even more duplication. The refactoring then would be different.

Roughly: too much abstraction too early is a bad idea.
[Which is a serious problem with people doing OO who think everything
should be abstract]

--
john skaller
skal...@users.sourceforge.net
http://felix-lang.org




------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to