-
Notifications
You must be signed in to change notification settings - Fork 62
Phantom language assorted ideas
Do and mean the same in this document? (No, type is class with possible []s)
Constructor can have ‘regenerator’ semantics to let us automatically recreate object if it was lost intentionally (not saved on snap) or accidentally (disk error, network error).
Make-style object dependencies?
Automatic-like variables with a guaranteed finalizer call on out-of scope event? (It will be forbidden for them to be passed away from method, of course.)
When passing object reference losing its type, we shall replace its interface with a special one, which will check all argument types in runtime.
Shall class object have a method which returns class interface by index?
case ranges? case 1 … 5:
Closure is a pair of object pointer and block of code. Closure can be passed as value and activated. Closure can have parameters (in this case we can call it anonymous method). Closure can use usual method as it’s code.
Need closure to get parameters from surrounding code? Implicit or explicit way?
var name[] = <value, …>;
<value, …> = name;
Class can dynamically (by storing a reference and proxying methods) inherit from any number of base classes:
class car_truck extends car, .ru.dz.cars.truck_code
{
…
};
In this case first base class will be static base class and others – dynamic. (Not implemented. Only one base class can be given now,)
:: Home :: RoadMap :: History :: ChangeLog :: ScreenShots :: Phantom Developer's Guide