I'm in CS right now, the guy next to me just complained that he's run out of variable names. Confused, I look over, and see: private int a,b,d,g,j,e,v;private double c,n,z,x,m;private String u,o,q,r;private int[]w;
As a concession to practicality, a pure function can also:
read and write the floating point exception flags read and write the floating point mode flags, as long as those flags are restored to their initial state upon function entry
Start at 100.
How many if statements will you have to use in order to add 1 every time the answer is divisible by 3, subtract 1 whenever the answer is divisible by 5, and divide by 2 when ever the answer is divisible by 2.
If it applies to more than one of the statements, do all of the statements...
I like that better than \block() not just because it isn't context specific, but it gives you the ability to require a fixed number of blocks, and lets you name them
It irks me that in so many other languages syntax constructs like that can't be user-defined
That's why I went out of my way to think of a way to do it here. The fact that it ties beautifully into \shared (our most powerful reflection tool) and coroutines is a massive bonus.
@BusinessCat mostly because it sometimes takes me almost two weeks to think of a language that will fit; it's had a burst of activity recently because it's now got long enough that the exponential growth allows some of the more verbose languages to fit, and it also hit some numbers (32, 33) that are particularly easy to generate in esolangs that are bad at arithmetic
I'm not quite sure what happens with nested BEGIN but I assume it works the obvious way, of running the inner BEGIN immediately and allowing it to affect the way the outer BEGIN parses
@NathanMerrill No, not all. \for is a regular syntax construct
But (don't tell the goat) since we can compile to C++ and we have @includec all Pytek STDLIB functions will be written in Pytek (where possible) and compiled to one big native shared object ;)
@quartata right, its not more overhead than a custom function, but compared to languages with a native for, it has the overhead of acting like a function