Zinc

Vexorian

Why no custom sig?
Reaction score
187
it will look something like this:


Code:
library moo:
    requires:
        TimerUtils
        OtherLib

    const:
        integer SPELL_ID = 'A000'
    function spellIdMatch() -> boolean:
        return SPELL_ID == GetSpellAbilityId()

    function doKill() :
        if false :
            BJDebugMsg("false??")
        elseif true :
            KillUnit(GetSpellTargetUnit() )

    function onInit() :
        var:
            trigger t
        TriggerRegisterAnyUnitEvent(t,EVENT_PLAYER_UNIT_SPELL_EFFECT )
        TriggerAddCondition(t, function spellIdMatch )
        TriggerAddAction(t, function doKill )

I think of it as a foil to Zinc.
 

Lyerae

I keep popping up on this site from time to time.
Reaction score
105
We have to be tri-lingual to help people in JASS.
Perfect.

Oh fun... /sarcasm

I'm probably not going to bother with Zinc. I really don't see how it's more useful/better than vJASS. :(
 
Reaction score
456
Boa outputs algorithms :p.

Boa is unreadable in my eyes. I like to "end" stuff with something visible.

Code:
    function doKill() :
        if false :
            BJDebugMsg("false??")
        elseif true :
            KillUnit(GetSpellTargetUnit() )
For example this looks nothing but a big ass syntax error in my eyes.
 

Romek

Super Moderator
Reaction score
963
I agree with Berp.
I much rather the {} syntax to the :.
 

Trollvottel

never aging title
Reaction score
262
it would be so great to have python's list and loop syntax =).

Code:
blablah = [1,5,7,8,2,5,4,2,10]

for i in blablah:
   BJDebugMsg(I2S(i))

etc...

but i think that wont be done, will it?


Edit:

Question:

Can you implement multi-line ifs for vJass? Its helpful, since sometimes my if-blocks are too long to read them ^^.
like
JASS:

if BLAHBLAHA == true and
    Blablabl == false and
    asdfjkhalk == Blablabl and
    olololol == true or
    hehehehe == true then
         // DO SOME ACTIONS
endif
 

Romek

Super Moderator
Reaction score
963
JASS:
if ConditionA() and /*
   */ ConditionB() and /*
   */ ConditionC() then
endif
 

Vexorian

Why no custom sig?
Reaction score
187
but i think that wont be done, will it?
Not really.

Perhaps a for each syntax would happen, but python-like lists not really.

I much rather the {} syntax to the :
that's pretty much the point of it.

identation-based code requires you to use a good editor with code folding and suddenly code becomes readable... Then you can actually get used to it.
Code:
if (true)
    BJDebugMsg();
else if (false)
    BJDebugMsg();

I like to "end" stuff with something visible.
The change in identation is visible.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top