Closed khardaw closed 4 years ago
working on it. i've chosen the syntax a: int default = 10
etc.
support for full defaults on any type of param
e.g.
structure Struct3 {
a: double
default = 123.9
b: int output
default = 20
c: date
default = "12/20/1990"
e: Struct4 inline
f: boolean
default = true
}
note that whitespace / newlines are not important, i just formatted it this way for fun
Awesome thanks for the speedy turnaround!
please let me know if it works in the way you expect, and if there are limitations i haven't foreseen!
reslang should allow users to specify a default parameter for a resource.
This could look like
enabled: boolean default: false
Opening this as an issue as I don't believe it's possible. Please correct me if I am mistaken.