Project

General

Profile

User story #18112

Updated by BenoƮt PECCATTE over 4 years ago

We want : 
 <pre> 
 # strict structure 
 struct A { 
   a: String, 
   b: Integer 
   ! # strict 
 } 
 # non strict structure 
 struct A { 
   a: String, 
   b: Integer 
 } 
 # implicit type structure 
 struct A { 
   a, b # 2 strings 
 } 
 </pre> 

 We could also have an implicit struct declaration during definition 
 <pre> 
 # magic 
 let var: Struct 
 let var.a  
 let var.b 
 # classic 
 let var: Struct 
 let var.a = "ok" 
 let var.b = "ko" 
 # classic 2 
 let var = { a = "ok", b= "ko" } 
 </pre>

Back