The BORK functor (function object) is essential to BORK and will replace the need of classes, functions, template classes, template functions, and will also function as a range of other concept that you don't find in OOP and even in classic Generic Programming. Anyways, here's some basic comparation of syntax between C++ and BORK on OOP concepts.
PHP Code:Classes, functions
[C++ Syntax]
class vector{
int x;
int y;
int z;
}
class stuff{
static int x;
static const int y;
}
const int stuff::y=5;
[BORK Syntax]
vector{x y z} //alternatively vector* x+y+z
stuff{x y*5} //alternatively stuff* x *y*5
***********************************************
Entry point
[C++ Syntax]
void main(void){}
[BORK Syntax]
main{}
***********************************************
Object Orientation
[C++ Syntax]
class A{
int x;
A(int px){
x=px;
}
int function(int a,int b){
return a+b*x;
}
}
main{
A a(1);
cout<<a.function(2,3);
}
[BORK Syntax]
A{
x=,
,
functor{
,/pa+,/pb*./x
}
}
main{
a{1 A}
cout*a*functor{2*pa+3*pb}
}
