Closed vladfaust closed 6 years ago
In real world models can have fields which are NOT NULL; but in Core developer still has to write model.field.not_nil! when working with such a field.
NOT NULL
Core
model.field.not_nil!
Proposal:
class User < Core::Model schema do field :username, String field :age, Int32? end end
Should expand to:
class User < Core::Model getter! username, String? getter age : Int32? end
In real world models can have fields which are
NOT NULL
; but inCore
developer still has to writemodel.field.not_nil!
when working with such a field.Proposal:
Should expand to: