r/ProgrammingLanguages • • Jul 02 '26

Community projects?

I've had a hard time telling just from casual browsing of the sub, what languages here are considered community projects, if any. Looking for places open to contribution.

Replaced original text to both get to the point, and avoid disparaging peoples personal projects, that's not my intention.

15 Upvotes

15 comments sorted by

View all comments

Show parent comment

2

u/SergeAzel Jul 03 '26

I know, I was mostly just teasing.

Its compile time checked, when possible, and that's enough for me generally.

I'm curious about the example here. I know it's just an example, but I assume foo is treated as a integer/string abstract, approximately?

Id be interested to see support for a compile-time error for using that without checking which concrete it is first? Runtime type errors are the bane of my existence.

2

u/Inconstant_Moo 🧿 Pipefish Jul 03 '26

I'm curious about the example here. I know it's just an example, but I assume foo is treated as a integer/string abstract, approximately?

Yes indeed. E.g. this fails to compile with the error Error: function + cannot accept arguments of type float on the left of it and int/string on the right at line 10:8-9 of "/home/tim/Pipefish/tmp.pf".

def 

foo(i int) :
    i > 0 :
        "banana"
    else :
        42

blort(i int) :
    0.5 + foo(i)