AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Syntax questions

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> General Chat
View previous topic :: View next topic  
Author Message
interiot



Joined: 06 Nov 2005
Posts: 64

PostPosted: Sun Mar 30, 2008 10:22 pm    Post subject: Syntax questions Reply with quote

This isn't a wish, but I have two syntax questions:

1. Chris has mentioned that currently there are two distinct forms of syntax for several things (:= vs =, if vs if(), quoted string literals vs unquoted), but that a future version of AutoHotkey will combine these currently distinct forms. Does anyone have examples of how this might work?

2. Does anyone know of any other languages that allow both unquoted and quoted string literals, and both sigiled and unsigiled variables in expressions? I know there are a number of languages that have one or the other, or two options, but I don't know of another that provides all the variations in the same language like AHK does.
Back to top
View user's profile Send private message
Tuncay



Joined: 07 Nov 2006
Posts: 384
Location: Berlin

PostPosted: Sun Mar 30, 2008 11:08 pm    Post subject: Reply with quote

First off, I think this thread should be removed to General Chat area.
[Moderator's note: Although the main threads relating this topic are in the Wish List thread, since this thread doesn't propose changes or new features, I have moved it to General Chat.]

If I have understand it correctly, only one type of syntax will be remain in v2 release: only expression variant.
Back to top
View user's profile Send private message Send e-mail
Lexikos



Joined: 17 Oct 2006
Posts: 2558
Location: Australia, Qld

PostPosted: Mon Mar 31, 2008 5:38 am    Post subject: Reply with quote

Tuncay,
Chris wrote:
I have no intention of abandoning the command-style syntax (though of course there will be more built-in functions eventually).
interiot, from what I recall, the plan is to:
  • abandon "traditional ifs",
  • implement "between", "is", "in", etc. in expressions,
  • make all assignments expressions, but introduce a new operator to take the place of '='.
None of this is set in stone, though. There was a document somewhere outlining possible changes (including a few commands which may be removed), but I can't seem to find it.

If you have a lot of time on your hands, you might like to read:

Gathering ideas for AutoHotkey v.2

The source of the above quote is:

AHK Version 2?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> General Chat All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group