Skip to content

Instantly share code, notes, and snippets.

@bobmagicii
Last active December 17, 2015 23:02
Show Gist options
  • Save bobmagicii/ac15ef8dc44ba3880e69 to your computer and use it in GitHub Desktop.
Save bobmagicii/ac15ef8dc44ba3880e69 to your computer and use it in GitHub Desktop.
papyrus the language of skyrim has nullable types.
Function DoSomeShit(Actor Who)
{do some shit with the specified actor. }
If(Who == None)
Who = Game.GetPlayer()
EndIf
;; ...
Return
EndFunction
@bobmagicii
Copy link
Author

note this does not allow DoSomeShit() to be called without arguments. that is why PHP's =null trick is just a shitty hack. i demand you pass an argument that is an actor or explicitly pass me your null. prove you know wtf you are doing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment