Forum Navigation
You need to log in to create posts and topics.

FB OOP Syntax

Posted by: nerimic <nerimic@...>

If You agree we can try to define some hypothetic syntax for OOP.

I think that we should try to stay as close as possibe to Obj-C.

Start blathering:

My provocative proposal is to just drop the ";" as line delimeter.

i.e. message sending:

[obj method:parameter]

Actually I believe that we can change also some structure syntax for match the FB paradigm:

interface classname : superclassname

...

end interface

class classname : superclassname

...

end class


method sqrrt( "root":r as double, "index":j as double) as int

...
end method = result


(I'm not sure about the pseudo-naming syntax).


Also I believe that we should avoid the inline definiton and assignment statement:

Recipient * recipient = [Recipient new];


to:


dim as ^Recipient recipient

recipient = [Recipient new]


end blathering.


Michele.



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]