News for hackers. Stuff that matters.
Re: by ivan_gammel on Thursday February 27, 2025 @09:41AM (#43194771)
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 ]
Re: by SirusCodes on Thursday February 27, 2025 @12:57PM (#43196717)
Thanks, those are some pretty nice suggestions!