Jump to content



Photo

Autoit devs: v3 syntax with the benefits of hindsight

syntax Semantics Interpreter Autoit Developers

  • Please log in to reply
30 replies to this topic

#1 twitchyliquid64

twitchyliquid64

    Peace. Always.

  • Active Members
  • PipPipPipPipPipPip
  • 520 posts

Posted 12 June 2012 - 12:44 PM

Hi guys,

I'm interested, with the benefit of several years hindsight, what the developers and other power users think.

What syntax + semantics would you add or remove, and why?



curious,

Twitchyliquid64

Edited by twitchyliquid64, 12 June 2012 - 12:45 PM.

ongoing projects:-firestorm: Largescale P2P Social NetworkCompleted Autoit Programs/Scripts: Variable Pickler | Networked Streaming Audio (in pure autoIT) | firenet p2p web messenger | Proxy Checker | Dynamic Execute() Code Generator | P2P UDF | Graph Theory Proof of Concept - Breadth First search







#2 Mat

Mat

    43 38 48 31 30 4E 34 4F 32

  • MVPs
  • 4,042 posts

Posted 12 June 2012 - 03:58 PM

Hmmm... Lets see.

They would remove the $ for variable names for a start. They would add tertiary statements... Need I go on?

I don't know where I'm going, but I'm on my way.


#3 Melba23

Melba23

    Yes, me!

  • Moderators
  • 15,398 posts

Posted 12 June 2012 - 04:02 PM

Mat,

I think you mean "ternary". ;)

M23
StringSize - Automatically size controls to fit text - ExtMsgBox - A user customisable replacement for MsgBox

Toast - Small GUIs which pop out of the Systray - Marquee - Scrolling tickertape GUIs

Scrollbars - Automatically sized scrollbars with a single command - GUIFrame - Subdivide GUIs into many adjustable frames

GUIExtender - Extend and retract multiple sections within a GUI - NoFocusLines - Remove the dotted focus lines from buttons, sliders, radios and checkboxes

ChooseFileFolder - Single and multiple selections from specified path tree structure - - Notify - Small notifications on the edge of the display

RecFileListToArray - An alternative to _FileListToArray with user-defined include/exclude masks, maximum recursion level, sorting and displayed path options

GUIListViewEx - Insert, delete, move, drag and sort ListView items


#4 Mat

Mat

    43 38 48 31 30 4E 34 4F 32

  • MVPs
  • 4,042 posts

Posted 12 June 2012 - 04:07 PM

I think you mean "ternary". :)

So does google and wikipedia.

Just a small slip of the fingers ;)

I don't know where I'm going, but I'm on my way.


#5 jaberwocky6669

jaberwocky6669

    Dull light.

  • Active Members
  • PipPipPipPipPipPip
  • 2,082 posts

Posted 12 June 2012 - 05:43 PM

I don't see a need for EndIf and EndFunc. Why not just End?

Edit: Well, ok, if you're at the end of a large function then yeah it makes sense. Disregard my post.

Edited by LaCastiglione, 12 June 2012 - 05:44 PM.


#6 Valik

Valik

    Former developer.

  • Active Members
  • PipPipPipPipPipPip
  • 18,879 posts

Posted 12 June 2012 - 06:13 PM

I don't see the need for End/EndIf/et cetera, why not curly braces? I don't see the need for curly braces, why not rely on indentation?

Point taken?

#7 jaberwocky6669

jaberwocky6669

    Dull light.

  • Active Members
  • PipPipPipPipPipPip
  • 2,082 posts

Posted 12 June 2012 - 06:34 PM

Understood.

#8 twitchyliquid64

twitchyliquid64

    Peace. Always.

  • Active Members
  • PipPipPipPipPipPip
  • 520 posts

Posted 12 June 2012 - 09:22 PM

I've heard some suggestion that Opt() and autoit flags are stupid and should be removed.
www.autoitscript.com/forum/topic/137246-latest-beta/page__st__120
www.autoitscript.com/trac/autoit/wiki/AutoItNotOnToDoList
what's the issue with the flags? are there just too many/too junky?

also i have heard suggestion that the syntax for dll* is less than ideal along with other things.

Take a look at
DllCall() and the unwieldy syntax. Take a
look at how data structures are faked in the
language. Non-trivial GUIs all but require
one or more global variables due to a lack
of user-defined callback parameters (and
arguably a lack of objects to encompass the
whole thing)


in hindsight, what would you do instead?
ongoing projects:-firestorm: Largescale P2P Social NetworkCompleted Autoit Programs/Scripts: Variable Pickler | Networked Streaming Audio (in pure autoIT) | firenet p2p web messenger | Proxy Checker | Dynamic Execute() Code Generator | P2P UDF | Graph Theory Proof of Concept - Breadth First search

#9 Valik

Valik

    Former developer.

  • Active Members
  • PipPipPipPipPipPip
  • 18,879 posts

Posted 12 June 2012 - 10:13 PM

in hindsight, what would you do instead?

Bring on a new developer. Ask that new developer to change things, fix things and implement new things. Change/fix/implement new things myself.
  • James likes this

#10 twitchyliquid64

twitchyliquid64

    Peace. Always.

  • Active Members
  • PipPipPipPipPipPip
  • 520 posts

Posted 13 June 2012 - 12:46 AM

Bring on a new developer. Ask that new developer to change things, fix things and implement new things. Change/fix/implement new things myself.


hmmm interesting. as a developer are you still involved in active implementation of new features?
ongoing projects:-firestorm: Largescale P2P Social NetworkCompleted Autoit Programs/Scripts: Variable Pickler | Networked Streaming Audio (in pure autoIT) | firenet p2p web messenger | Proxy Checker | Dynamic Execute() Code Generator | P2P UDF | Graph Theory Proof of Concept - Breadth First search

#11 Valik

Valik

    Former developer.

  • Active Members
  • PipPipPipPipPipPip
  • 18,879 posts

Posted 13 June 2012 - 01:14 AM

I write very little code lately.

#12 D4RKON3

D4RKON3

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 372 posts

Posted 13 June 2012 - 07:56 AM

Vote for removing $ from variables.

#13 Manadar

Manadar

    Taking a REST.

  • MVPs
  • 10,714 posts

Posted 13 June 2012 - 08:13 AM

Functions as first class citizens.

File based scoping. Local keyword for File scope, Global for Everywhere.

#include at run-time. Or equivalent.

#14 Mat

Mat

    43 38 48 31 30 4E 34 4F 32

  • MVPs
  • 4,042 posts

Posted 13 June 2012 - 08:42 AM

#include at run-time. Or equivalent.

Or have a proper module system.

I don't know where I'm going, but I'm on my way.


#15 Manadar

Manadar

    Taking a REST.

  • MVPs
  • 10,714 posts

Posted 13 June 2012 - 09:16 AM

Or have a proper module system.

What would be the difference? Explain.

#16 czardas

czardas

  • Active Members
  • PipPipPipPipPipPip
  • 5,079 posts

Posted 13 June 2012 - 09:43 AM

As I have become more familiar over time, the things that seem incomprehensible to me generally appear to be Microsoft's doing and not related to AutoIt (although not always). I've learned to live with the inconsistancies to some degree. One thing that bugged me for a long time was binary representation and manipulation. It still does bug me in fact. I'm sure things are very different at the machine code level, but I'm looking at it from the point of view of someone who thinks binary only has two values. If you want to add preceeding zeros why stop at 32 or 64? Why not add an infinite number of preceeding zeros? ;)

Spoiler

Edited by czardas, 13 June 2012 - 09:54 AM.


#17 James

James

    jbrooksuk

  • MVPs
  • 9,470 posts

Posted 13 June 2012 - 10:51 AM

Get rid of Opt, it's a ballache.

#18 czardas

czardas

  • Active Members
  • PipPipPipPipPipPip
  • 5,079 posts

Posted 13 June 2012 - 12:21 PM

I just came across the following interesting quote by Valik: It's not entirely related to my previous rant but is illustrates some of the issues. - mainly the fact that the blueprint is wrong in a number of places to start with. Making changes to AutoIt that will break 90% of scripts is not really going to be very popular.

The entire world is relying on this "wrong" behavior. The electric you are using is provided to you courtesy of a broken modulo operator. The operating system you are using currently is relying on it. If your automobile has an on-board electronics system, chances are, it's relying on the wrong behavior. Get the point; do you really want to suggest we make AutoIt "right" so we can be different than the rest of the world?


I'm a bit on the fence regarding this kind of thing. Copying incorrect models still seems a hard pill to swallow.

Edited by czardas, 13 June 2012 - 12:28 PM.


#19 Valik

Valik

    Former developer.

  • Active Members
  • PipPipPipPipPipPip
  • 18,879 posts

Posted 13 June 2012 - 12:31 PM

Vote for removing $ from variables.

Why are you voting for a feature that is done and publicly available in alpha form?

#20 Blue_Drache

Blue_Drache

    Revolutionary Flavour

  • Active Members
  • PipPipPipPipPipPip
  • 3,179 posts

Posted 13 June 2012 - 04:47 PM

Out of curiosity, why are y'all removing the "$" from variable names?

Edited by Blue_Drache, 13 June 2012 - 04:48 PM.

Lofting the cyberwinds on teknoleather wings, I am...The Blue DrachePosted ImagePosted Image





Also tagged with one or more of these keywords: syntax, Semantics, Interpreter, Autoit, Developers

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users