vapourlang / vapour

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

Generate type default values #60

Open JohnCoene opened 2 months ago

JohnCoene commented 2 months 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