vapourlang / vapour

Typed superset of R
http://vapour.run
Apache License 2.0
190 stars 3 forks source link

Generate type default values #60

Open JohnCoene opened 1 month ago

JohnCoene commented 1 month ago

We actually need to generate default values for given types in places.

type user: object {
  id: int,
  name: char
}

let u: user = user()

# this will fail in R
u$id + 1

u$id will fail currently as it's technically not instantiated and thus NULL