« first day (3688 days earlier)      last day (1267 days later) » 

12:00 AM
Professional wrestling: ballet for the common man. (source)
 
 
3 hours later…
2:53 AM
nods off
 
 
4 hours later…
6:58 AM
posted on November 27, 2020

 
 
4 hours later…
11:24 AM
Hello
Is anyone here familiar with picocli?
 
henlo
 
outer:
        for (String w : words) {
            int[] count = cnt.clone();
            for (char c : w.toCharArray())
                if (--count[c - 'a'] < 0) // not enough, continue next word in words.
                    continue outer;
            ans += w.length();
        }
what does the outer do here?
 
it is just a label
 
for what?
 
I started basic tutorial and first example doesn't work ;]
 
11:26 AM
with it, continue can specify which loop to continue
same for break
 
oh right so the continue outer goes back to the first outer?
 
@Pochmurnik picocli.info this looks pretty easy
never used it tho
@Trajan there is no "first" outer
 
there is just outer
 
@Wietlol how then?
 
11:28 AM
it continues the outer loop
 
turns out this doesn't work with 3.9.6 jar, took me a while to figure out
 
which is specified by outer?
 
ye
 
ok
 
but now copy-paste code doesn't work, I don't get any output in console
 
11:29 AM
that is different to other languages
 
I dont see how that is different
every other language with labels works that way
 
which are what?
python nor c++ has it
 
C++ doesnt have labelled loops tho
 
exactly
i dont know c# has it either
but im not an expert
 
it appears C# doesnt have it either
both have goto tho
which can be used to achieve the same
Javascript has labelled loops
 
11:44 AM
@Wietlol You can simulate continue outer; with goto end_of_outer; in C++ ;)
 
 
2 hours later…
2:06 PM
posted on November 27, 2020

archive - contact - sexy exciting merchandise - search - about ← previousNovember 27th, 2020nextNovember 27th, 2020: Hey, I've got a mailing list for SECRET PALS! If you'd like to be a SECRET PAL, baby, now is your chance. I only send out a message like once a month!– Ryan

 
2:33 PM
 
Happy Black Friday, Java! No, not that Black. xD
 
 
6 hours later…
8:41 PM
hums a song
 

« first day (3688 days earlier)      last day (1267 days later) »