Monday, December 19, 2011

colons are full of...

comparing unreal script and javascript
function declaration in unity3d vs Unreal

javascript:

function SomeCondition():boolean

{

return false;

}

what's the ():"somereturn value?"

unrealscript:

function bool SomeCondition()

{

return false;

}

for some reason, I prefer using :'s a lot less. the formatting of putting the return value after the arguments makes less sense to me for some reason.
even in C# you have

public bool SomeCondition()

{

return false;

}

Not sure I'll be into this js stuff in unity, or at least it's abundance of colons.

No comments:

Post a Comment

rxokita's shared items