Prefabs
warning
At this moment, Drift does not implement prefabs.
prefab PrefabName {
...
}
class ClassName with PrefabName
// or short syntax
class ClassName : +PrefabName
Planned Native Prefabs:
Datato create data classes with util membersSubscriptableto add a native index system to class with getter and setter
class A : +Subscriptable {
subscript (index: Int) : Int {
return ...
}
}
Equatableto implement operator methods for==and!=operatorsComparableto implement operator methods for comparison operatorsHashableto implementhashmethodCloneableto implement deep/shallowclonemethodSerializableto implement native JSON auto serializationIncrementableto accept++and--operatorsAddable/Subtractable/Multipliable/Divisibleto accept basic math operatorsIterableto implementiteratemethod withfor instance { ...Countableto implementcountmethodObservableto implement main event methods (onChangeetc.)Closeableto implementclosemethod