Jerome Simeon

Results 307 comments of Jerome Simeon

> No worries. I don't really use stateId so I would really like the smart clause to be initialised with empty state without me having to do anything. This doesn't...

> Another way to think about it is if those are not initialised during `init` when are they initialized? the "magic" part to me is: what if one contract wants...

> > Another way to think about it is if those are not initialised during `init` when are they initialized? > > the "magic" part to me is: what if...

> Could a default state instance be an optional part of the template definition? For example, something like `state_default.json` in the root directory. > > If it exists, it is...

> I would like to define the standard default state when defining the state model. Then when I don't provide an init method I just get the default state defined...

I'll rephrase some of the questions raised by this issue with a bit of an analogy: 1. can we provide a default constructor for a class? (often yes, with some...

Data point: Concerto has already a notion of default. ``` bash-3.2$ cat address.cto namespace org.acme concept Address { o String city default="Winchester" o String country optional o String state default="NY"...

Automatic creation of a value could be part of the editing experience. VSCode hot key or something else.

Proposed resolution: 1. Remove `stateId` from the base models (that is related to https://github.com/accordproject/models/issues/93) 2. Add tooling support for creating init clauses 3. Add tooling support to automatically generate Ergo...

@adrianffletcher Let us know if the proposed resolution seems reasonable to you.