Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hello constructions in python #831

Open
zlfplololo opened this issue Apr 4, 2024 · 1 comment
Open

hello constructions in python #831

zlfplololo opened this issue Apr 4, 2024 · 1 comment

Comments

@zlfplololo
Copy link

hello developers (of processing)
let’s do some opportunity to other developers create some cycles and constructons (construsions like if, else if, else …)
im have an workpiece for that

let’s create an match-case like in python

void match(Unlinted what) [!endless case(Unlinted with)] [this.code, this.argument] {
    for (Unlinted i = 0; i <= case.length;i++) {
        if (match.argument == case[i].argument || case[i].argument == null) {
            eval(case[i].code);
            break;
        }
    }
} 

this will be like that

match ("youre argument1") {
    // this part of code just ignores
} case ("youre argument2") {
    // match-case do this part of code and go out of match-case, if youre argument1 == youre 
    // argument2
} case ("youre argument3") {
    // same as first case but youre argument 2 is youre argument 3
    // and so forth
} case (null) {
    // this part of code be fulfilled Necessarily
}

and now analysis of the incomprehensible

//Unlinted tipe
//this tipe is tipe for unlinted tipe of variable

// void [] []

// first [] is tipes of additional constructions like else if and else for if
// also !endless and endless is types of additional constructions
// !endless is not break the constuction after doing
// endless is break the constuction after doing
// enother part of first [] is name of additional construction and arguments

// second [] is a code and argument notation
// first is code and second is arguments

// eval just do code in quotes 

this is just this wery useful construcion for writing code
and will attract the other programers, thanx😊

@zlfplololo
Copy link
Author

  • [ ]

@zlfplololo zlfplololo reopened this Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant