wurstscript / WurstScript

Programming language and toolkit to create Warcraft III Maps

Home Page:https://wurstlang.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can we have the safe call sugar to check null simply?

cloudfox2 opened this issue · comments

Like foo?.bar() in Kotlin and Swift. It's equal to:

if foo != null
    foo.bar()

And can we have a safe destroy too? I'm writing a lot these code when destory class elements:

if foo != null
    destory foo