[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] A more fundamental concept than functions: units ofcode that self-select
- From: David <dlee@calldei.com>
- To: xml-dev@lists.xml.org
- Date: Mon, 17 May 2010 18:47:43 -0400
> The ability to create self-selecting units of code is very powerful. It resounds of decentralization, local-control, Complex Systems. Wow!
>
>
Complex & powerful , Yes. Thats a double-edged sword, IMHO.
Imagine the entire web as self-selecting. That would be complex and
powerful ! (and really really dangerous).
> Are there other programming languages that support self-selecting units of code?
>
>
Any language that allows function overloading by signature is "self
selecting" in the sense you describe templates, IMHO.
e.g. say in C++ or Java
foo( int x );
foo( String x)
... call
foo( "hi") ;
Self-selects by the parameter type (and number). Perhaps not quite the
same as self-selecting by a select expression but similar in concept.
Some languages self-select by the return type as well (but not java or C++).
Again, powerful, complex, and dangerous.
There have been many debates (undecided IMHO) as to if this is "good"
or "bad".
But its unambiguously "powerful".
> Do you agree that self-selecting units of code represents a more fundamental concept than functions?
>
Not sure exactly what you mean by "fundamental" ... it can have
different meanings.
-------------------------
David A. Lee
dlee@calldei.com
http://www.calldei.com
http://www.xmlsh.org
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]