Search found 2037 matches

by nnnik
Today, 03:30
Forum: Wish List
Topic: Features I miss from other languages & syntax ideas
Replies: 5
Views: 68

Re: Features I miss from other languages

Maybe just the ability to compare a value with ranges would be more useful, like: x := 55 if(x ~= 50..100 or x ~= 150..200) return true Iactually support this idea: [c]~=[\c] is currently used in AutoHotkey to match a Regular Expression which in a very broad sense could be called the comparison bet...
by nnnik
Today, 02:45
Forum: Wish List
Topic: Features I miss from other languages & syntax ideas
Replies: 5
Views: 68

Re: Features I miss from other languages

This switch would only be worse on the eyes. So if you don't mind hurting eyes I reccomend using Objects for that: As for B no I don't mean assume global I explicitly meant super global: global I_ACT_LIKE_A_STATIC := 12 fn() { Msgbox % I_ACT_LIKE_A_STATIC } Towards me I never understood the pollutio...
by nnnik
Today, 02:16
Forum: Wish List
Topic: Features I miss from other languages & syntax ideas
Replies: 5
Views: 68

Re: Features I miss from other languages

I disagree with the switches due to several reasons: A) Their main point is replacing long if/else constructions - however they fail to replace every if/else construct their is. They only replace a very specific rare case. B) They are supposed to be more readeable but are so rare that when approachi...
by nnnik
17 Oct 2017, 15:01
Forum: Tutorials
Topic: jeeswg's RegEx tutorial (RegExMatch, RegExReplace)
Replies: 8
Views: 6592

Re: jeeswg's RegEx tutorial (RegExMatch, RegExReplace)

To be honest I mostly don't bother reading unindented code.
by nnnik
17 Oct 2017, 09:05
Forum: Tutorials
Topic: OOP design patterns in AHK
Replies: 5
Views: 372

Re: OOP design patterns in AHK

Name: super global automatically initialized Singleton AHK-Only: Probably Description: A Singleton that is stored in the super global variable of it's base class and initializes itself automatically - it works like the other singletons I have shown so far exept that it also overwrites its base clas...
by nnnik
17 Oct 2017, 08:19
Forum: Offtopic
Topic: OOP design patterns in AHK
Replies: 7
Views: 54

Re: OOP design patterns in AHK

I think I will split this into a discussion and a collection part since it get's less confusing.
by nnnik
16 Oct 2017, 22:05
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 260
Views: 49693

Re: Suggestions on documentation improvements

Exaskryz wrote:@Stamimail, I think that's a problem.

What defines a useful script for anyone?...

+1
by nnnik
16 Oct 2017, 08:07
Forum: AutoHotkey v2 Development
Topic: μKanren: A Minimal Functional Core for Relational Programming
Replies: 4
Views: 90

Re: μKanren: A Minimal Functional Core for Relational Programming

No I think this suggestion has a better chance at passing. AHKs central point is still that it is able to easily modify Windows and it's programs. However if we think of progressing it will be necessary for several things to happen: A) Cross-Platformability B) Making it easier to target specific pro...
by nnnik
16 Oct 2017, 03:21
Forum: AutoHotkey v2 Development
Topic: Concept about head and tail formalism: [H|T]
Replies: 13
Views: 200

Re: Concept about head and tail formalism: [H|T]

Yeah but AHKs focus is far from prolog. Changing AutoHotkeys focus is not part of v2s goals as far as I'm aware. I think problems like these will have to wait for v3. Additionally I see problems with including a single Syntax since they are often meant to be in a set and work on a set. In AutoHotkey...
by nnnik
15 Oct 2017, 06:37
Forum: AutoHotkey v2 Development
Topic: Concept about head and tail formalism: [H|T]
Replies: 13
Views: 200

Re: Concept about head and tail formalism: [H|T]

I don't think it is very readeable powerful or particulary useful, in fact I only think it is adding additional confusion
by nnnik
13 Oct 2017, 04:59
Forum: Offtopic
Topic: OOP design patterns in AHK
Replies: 7
Views: 54

Re: OOP design patterns in AHK

Then why didn't you just write circular references? I think my class indirectReference creates all sort of Proxy objects: /* CLASS indirectReference author: nnnik description: A class that is able to create safe indirect references that allow access to an object without creating a reference. This al...
by nnnik
13 Oct 2017, 04:49
Forum: AutoHotkey v2 Development
Topic: Concept about head and tail formalism: [H|T]
Replies: 13
Views: 200

Re: Concept about head and tail formalism: [H|T]

I don't think this is in any way useful especially since you can cause the same effect with very simple AHK code.

Code: [Select all]GeSHi © Codebox Plus

getHead( list )
{
return list.1 ;I mean like really? why do you need a function for that?
}

getTail( list )
{
list := list.clone()
list.removeAt( 1 )
return list
}
by nnnik
12 Oct 2017, 23:32
Forum: Offtopic
Topic: OOP design patterns in AHK
Replies: 7
Views: 54

Re: OOP design patterns in AHK

Hmm yeah the code that is the pattern should always be above the example code.
Just curious but I don't quite understand why you need self references
by nnnik
12 Oct 2017, 12:14
Forum: Forum Issues
Topic: Link to SCAM website
Replies: 22
Views: 346

Re: Link to SCAM website

So then do we need to put the boards down for the meantime until a solution is found?
I mean we really can't lead people to a scam website.
by nnnik
12 Oct 2017, 00:05
Forum: Forum Issues
Topic: Link to SCAM website
Replies: 22
Views: 346

Re: Link to SCAM website

Yeah that also means that we need to shut down the old forum to prevent users from getting there
by nnnik
11 Oct 2017, 09:19
Forum: Allgemeines
Topic: lexikos?
Replies: 32
Views: 988

Re: lexikos?

Ich meine gesagt zu haben, dass das Team auch nichts weiß.
Bisher zumindest immer noch keine Antwort auf meine e-Mail.
by nnnik
11 Oct 2017, 03:59
Forum: Allgemeines
Topic: lexikos?
Replies: 32
Views: 988

Re: lexikos?

Und würde damit in einem neuen Fork Fakten schaffen.
Lexikos gefällt der Wille der Community nicht - so viel ist soweit ich weiß offensichtlich - wenn jemand nun einen Fork erzeugt der in diese Richtung geht hätten wir wiederum Chris Situation.
Auf meine e-Mail hat er noch nicht reagiert.
by nnnik
11 Oct 2017, 03:20
Forum: Offtopic
Topic: OOP design patterns in AHK
Replies: 7
Views: 54

Re: OOP design patterns in AHK

I adjusted the code to make that easier.
by nnnik
11 Oct 2017, 02:32
Forum: Tutorials
Topic: OOP design patterns in AHK
Replies: 5
Views: 372

Re: OOP design patterns in AHK

Since the explination I gave doesn't exactly show what I mean I guess I will go ahead and show the first 2 patterns: Name: Singleton AHK only: a common pattern first introduced by the gang of four - they also wrote a famous book about design patterns you should check that out Description: A Singleto...

Go to advanced search