"With variants, you have to know and handle all the possible classes at every
"method" implementation." except you don't, you can just do
case myobj.kind
of MyKind:
# do stuff...
else:
discard
Run
- "Nim for Python Programmers" wiki page sschwarzer
- Re: "Nim for Python Programmers" wiki page Yardanico
- Re: "Nim for Python Programmers" wiki p... KingDarBoja
- Re: "Nim for Python Programmers" wi... sschwarzer
- Re: "Nim for Python Programmers"... Yardanico
- Re: "Nim for Python Programmers... Stefan_Salewski
- Re: "Nim for Python Program... cumulonimbus
- Re: "Nim for Python Pro... Yardanico
- Re: "Nim for Python Pro... sschwarzer
- Re: "Nim for Python Pro... doofenstein
- Re: "Nim for Python Pro... mratsim
