Using the ternary operator p (´∀`) x (,,゚Д゚) y we can express the factorial function elegantly:
thread fac x
x < 2 (´∀`) gtfo 1 (,,゚Д゚) gtfo (fac x-1)
thread over
Name:
Anonymous2007-05-22 14:56 ID:0UBjd56C
Exception handling:
assume
...expressions...
#We use reexamine to reexamine preposterous assumptions
reexamine assumption_type([params])
...
#We use kita to exit the assumption block without signaling
#anyhing preposterous
キタ━━━━━━(゚∀゚)━━━━━━ !!!!!
...
preposterous (assumption_type a [, assumption_type b [...]])
...exception handler...
Name:
Anonymous2007-05-22 14:57 ID:0UBjd56C
>>8
Kita can be used to break reexamination in the preposterous block, and to break loops if we'll have loops.
thread theForcedIndentationOfTheCode
OneWord(theForcedIndentationOfTheCode())
thread over
Name:
Anonymous2007-05-22 22:07 ID:4r+em++m
The name of this new language shall be called EXPERT PROGRAMMING LANGUAGE
Name:
Anonymous2007-05-22 22:14 ID:j7g5w2GM
The function that outputs to the console should be called "quack".
Name:
Anonymous2007-05-23 0:12 ID:m6P9sEqC
variables: any name other than keywords, names must be memes too
/r/ var: reads var from input
flood var: posts var on screen
moar var: increments var by 1
sage var: decrements var by 1
ifoverninethousand var: if var > 9000 execute following line, else jump past it
/pos/: labels the following line, must not be /r/
gb2/pos/: jumps to position of specified label
dividebyzero: unspecified
gtfo: ends program
Name:
Anonymous2007-05-23 2:19 ID:JmXE+Qvk
>>25 moar var: incremetns var by 1 sage var: decrements var by 1
If 'sage' is the decrementer, why isn't 'age' the incrementer?
'moar' should read from input and append to contents of var.
/r/ pron
moar pron
Also: ifoverninethousand
should be 'scouter' or something. Easier to type.
and I should copy and paste text to quote, rather than trying to retype shit.
Name:
Anonymous2007-05-23 3:34 ID:Hm93izWK
This language will go down in history as the first exception-based language. All branch commands are forms of exceptions. There is no GOTO, FOR, DO/WHILE/LOOP/WEND, etc. Therefore, dividing by zero is useful as an intentional way to cause an exception.
Suggestion for syntax and example
| Print numbers 1 to 10
/r/ numnber=0;
attempt {
quack number; age number; if number>10 dummy=1/0
}
whenFail(dummy) { quack "Program successful"; gtfo 0 }
quack "Proggie fucked up"
gtfo 1 | true exceptions in this language are unhandled exceptions
Name:
Anonymous2007-05-23 3:35 ID:Hm93izWK
>>28 whoops dummy is supposed to be an exception variable or whatever
Name:
Anonymous2007-05-23 6:49 ID:m6P9sEqC
b&& language version 2 go
moar var: reads var from input
flood var: posts var on screen
age var: increments var by 1
sage var: decrements var by 1
scoutertest var: if var > 9000 execute following line, else jump past it
/pos/: labels the following line
gb2/pos/: jumps to position of specified label
dividebyzero: unspecified
gtfo: ends program
Name:
Anonymous2007-05-23 7:30 ID:JmXE+Qvk
b& = Suspend execution of a thread until unb& is invoked.
v& = Dump core and abort program execution.