Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am matthiaswh on github.
  • I am matthiaswh (https://keybase.io/matthiaswh) on keybase.
  • I have a public key ASAiBJ5gutaLjH4TIOsRzhkLMoLU-eHRO_ohcA5QD91k-go

To claim this, I am signing this object:

@matthiaswh
matthiaswh / nimtypes.nim
Last active December 7, 2018 19:45
playing with types and inheritance in nim-lang
import strutils # provides parseInt for us
type
Node = ref object of RootObj
value: string
active: bool
type
NumNode = ref object of Node