What's Missing from Object Oriented Languages: Plurality
What's Missing from Object Oriented Languages: Plurality
For years I have been aware of this oversight but I was never confident or lucky enough to find a way to implement it. Finally, with eC my programming vision is becoming a reality. As a programmer, the linked list had its day: it is an efficient way of storing information. Java attempted to do away with them -- yet, they persist. There is one Java back-door which provides its functionality, but Sun doesn't recommend it. The linked list is a fundamental structure in computer science. Sun Microsystems cannot just come in and try to deprecate it, it's undeprecatable. The list is an essential tool for defining collections. Solutions abound and are not limited to arrays and trees or even vectors, the marriage of arrays and linked lists. It is faster to sort and manipulate linked lists than these other fundamental types.
What is missing from OO, which formalized memory de/allocation and structure from C in C++, is the idea of plurality. Everything is singular in C and Java without some serious hacks. This is not adequate for describing the universe, and in fact in human languages we have the idea of plurality for describing sets and collections. Any developer knows they must handle all of this on their own, from their own bag of tricks, in each of these languages. This also is true for C#, VisualBASIC and others. For some reason, it was an oversight in C and all of its derivative languages.
In eC, we can refer to objects in a plural sense.
Examples written in eC:
Whats Missing from Object Oriented Languages Plurality - To learn more about this author, visit Herb Gilliland's Website.
Like this article? Share it with your friends
For our friendly programmers and computer scientists out there, this one may be the "aha!" article you've been waiting for. The future of OO is now: with the Ecere SDK. I had the priviledge of working with Ecere Corporation, based in Quebec, on a newly designed eC programming language which extends and simplifies the world of C++.
For years I have been aware of this oversight but I was never confident or lucky enough to find a way to implement it. Finally, with eC my programming vision is becoming a reality. As a programmer, the linked list had its day: it is an efficient way of storing information. Java attempted to do away with them -- yet, they persist. There is one Java back-door which provides its functionality, but Sun doesn't recommend it. The linked list is a fundamental structure in computer science. Sun Microsystems cannot just come in and try to deprecate it, it's undeprecatable. The list is an essential tool for defining collections. Solutions abound and are not limited to arrays and trees or even vectors, the marriage of arrays and linked lists. It is faster to sort and manipulate linked lists than these other fundamental types.
What is missing from OO, which formalized memory de/allocation and structure from C in C++, is the idea of plurality. Everything is singular in C and Java without some serious hacks. This is not adequate for describing the universe, and in fact in human languages we have the idea of plurality for describing sets and collections. Any developer knows they must handle all of this on their own, from their own bag of tricks, in each of these languages. This also is true for C#, VisualBASIC and others. For some reason, it was an oversight in C and all of its derivative languages.
In eC, we can refer to objects in a plural sense.
Examples written in eC:
- class Bead {
int x;
} plural Beads; - Beads beads, beads2, beads3;
Bead bead, bead2; - bead = Bead { 1 };
beads[0] = bead;
beads.add( bead );
beads.remove( bead );
beads.insert( bead, beads );
beads.sort( );
bead2 = bead.copy(); - beads2=beads.copy();
- beads3=beads.intersect(beads2);
- { int x; for ( x=0; x
- beads.merge(beads2); // or "union"?
beads3=beads.append(beads,beads2);
beads2=beads3.reverse(); // GC?
beads3.reverse();
for ( bead = beads3; bead != null; bead=bead.next ) ...
with( beads3 as b ) ... like php foreach - if ( bead[2] ) bead[2].blah = 2;
else print (" There is no bead[2] "); - delete beads, beads2, beads3;
delete bead; - with ( bead ) { blah=1; }
Whats Missing from Object Oriented Languages Plurality - To learn more about this author, visit Herb Gilliland's Website.
Like this article? Share it with your friends
![]() | |
| |
No article feedback found. |
| |
Leave Your Feedback |
|
| |
| |||
|
To learn more about the Evan Elite Author Program please contact us. |
![]() | |
![]()
| |
![]() | |
|
| |
![]() | |
|
| |
![]() | |||||||
|
![]() | ||
|
| ||
![]() |
| Have you written articles that would be of value to entrepreneurs? Become an expert on our site by publishing them! Expose yourself to a wide audience, drive more traffic to your website and get more sales! Click Here for details. |
|
|
![]() |
| Modeling the Masters: Learn the true secrets behind Walt Disney's business success factors & grow your company! Video produced by Phanta Media |
|
|
![]() |
"Learn straight from Evan how you can Make a Full Time Income (And More) from a Website"
Click Here To Learn More |
|
|
|
|
Get advice & tips from famous business owners, new articles by entrepreneur experts, my latest website updates, & special sneak peaks at what's to come!
|
![]() |
|
|
![]() | ||
|
Top 50 Blogs For Startups
Top Blogs To Watch In 2009 | ||
|
Top 50 Niche Blogs 2009
Top 50 Niche Blogs 2009 | ||
![]() | ||
![]() | ||||
| ||||
| ||||
| ||||
|
|
|
|
|
||||||||||||
|
|
|
|
|
| ||||||||||
|
| ||||||||||






Subscribe to Herb's articles











