dplassgit / d2lang

D2 is a strongly-typed, statically-typed, (mostly) inferred-type compiled language.
MIT License
6 stars 1 forks source link

Remove primitive declarations #257

Closed dplassgit closed 1 year ago

dplassgit commented 1 year ago

E.g., s:string as a local variable. It detracts from the cleanliness of the language, and its semantics are undefined. s="" is preferred.

Maybe?

dplassgit commented 1 year ago

Eh, I think I still like this, especially for things like forward declaration of record variables.