• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[JASS] What kinds of ignored characters can I use?

Status
Not open for further replies.
Obviously white space is ignored in code, commented code, empty lines, but some things come to mind. Boolean expressions can be referenced in what are essentially useless (brackets). Can I do the same thing with anything else?

JASS:
call(function())

Are there any other neat things I can harmlessly inject into the code to make it more beautified?
 
The only reason you can "harmlessly inject" the Filter() part that is only because vJass notices a code parameter when it should be a boolean expression. If you tried that in your normal World Editor it would give you a syntax error.

Keeping your code indentations proper and using tab frequently can help your code look better.
 
^- This is what happens when I mesh JASS with all the C-style programming I am trying to learn. It's a mess.

@Anachron,
I read those rules, and that's pretty much the standard for how I write code. The problem is that I haven't learned the usefulness of structs and textmacros yet, so I can't keep up with any of those "systems we use". Further analyzation has taught me that neither structs nor textmacros can do anything I can't do in JASS, so I have a hard time learning what is essentially a helper for JASS and not a unique system.
 
Status
Not open for further replies.
Back
Top