No space between variable and ":="

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Kagey
Posts: 5
Joined: 09 Jan 2020, 16:31

No space between variable and ":="

16 Jan 2020, 11:35

What, if anything is different between:

Code: Select all

myVar := someValue
and

Code: Select all

myVar:= someValue
?
Thanks!
just me
Posts: 9453
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: No space between variable and ":="

16 Jan 2020, 12:00

One space. ;)
User avatar
Frosti
Posts: 426
Joined: 27 Oct 2017, 14:30
Contact:

Re: No space between variable and ":="

16 Jan 2020, 12:01

There's no difference only you like to have a nice coding style! :D
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: No space between variable and ":="

16 Jan 2020, 12:22

one is ugly and breaks the syntax highlighter
the other is pretty and doesnt
Helgef
Posts: 4709
Joined: 17 Jul 2016, 01:02
Contact:

Re: No space between variable and ":="

16 Jan 2020, 12:25

scripting language wrote: Spaces are mostly ignored: Indentation (leading space) is important for writing readable code, but is not required by the program and is generally ignored. Spaces and tabs are generally ignored at the end of a line, within an expression (except between quotes), and before and after command parameters. However, spaces are significant in some cases, including:
src, my red.

Cheers.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Descolada, Joey5, mikeyww, RandomBoy, wpulford and 322 guests