2 ms·
Some more suggestions: 1. replace "while" with "go on" (yes, with space, because why not) { i < 10 } go on [ ... ] 2. add break statement in the form of "
by ivan_gammel 2y ago
Some more suggestions:
1. replace "while" with "go on" (yes, with space, because why not)
{ i < 10 } go on [ ... ]
2. add break statement in the form of "oh, come on!"
{ i < 10 } go on [
,1 += i
{ i > 5 } considered [
oh, come on!
]
]
3. replace "if" with "considered" and "if else" chain with "on <number> thought". Final "else" must be "eigentlich", because who said all keywords should be in English?
{a < b } considered [ ... ], {a > b} on 2nd thought [ ... ], eigentlich [ ...]
4. add reverse array function with special syntax, because it is special:
reverse{array}
5. add constants:
,$SCREAM!$ = SCREAM let it be
6. Add System.exit(<number>):
,{1}oh, no!
7. Add exceptions:
{$Invalid user$}oh, my god!
8. Do not support catching exceptions in try blocks. They are exceptions. Every function must implicitly return an union type <ReturnValue|Exception>. If exception value is not handled, it pops up.
,{1; 0}divide = value let
{exception is value} considered [ ,value print ] on 2nd thought [ ,1+= value ]
- SirusCodes 2y agoThanks, those are some pretty nice suggestions!