News for hackers. Stuff that matters.
Re: by another-dave on Wednesday February 26, 2025 @10:09PM (#43190909)
Think you should rename some of the keywords to more naturally suit their positioning.

Like, rather than

    [condition] if 
        <code> 
    [condition] else if 
        <code> 
    else 
        <code>
if you have

    [condition] then
        <code> 
    otherwise [condition] then
        <code> 
    otherwise 
(Though 'otherwise [condition] then' breaks your pure postfix style).

Similarly "while" could be "yields".

And "let" could be "over" (CB radio-style):

    10 = age over;
Re: by SirusCodes on Wednesday February 26, 2025 @11:58PM (#43191493)
Someone on X suggested to make it logically reverse, so true would be false and visa versa.

We can go ahead and make + behave as - and similarly for other operators.

Re: by wging on Thursday February 27, 2025 @02:19AM (#43192116)
Do you want to lie to your users, or do you just want to use unconventional operators? If the latter, you could consider using something like ruby's `unless`.

(the number of times I've noticed code that does `unless !some_condition`... which is of course just the same thing as `if some_condition`)

Re: by SirusCodes on Friday February 28, 2025 @08:47AM (#43205523)
Makes sense; I need to think about which would be better.