r/ProgrammingLanguages • • Sep 01 '26

Discussion What is the interesting part of a programming language to you?

I've been working on some "documentation" for my own language (see here), which got me thinking: do we all see languages the same way? I personally look for unification of concepts and extensibility in a design, yet I've seen those who care deeply about functional purity or clean decompositions.
What do you look for in a programming language? And why?

35 Upvotes

111 comments sorted by

View all comments

Show parent comment

1

u/Inconstant_Moo 🧿 Pipefish Sep 02 '26

It seems like you and u/reflexive-polytope might be talking about something like Pipefish's clone types.

Vec{i int} = clone list :
    len that == i

The escape hatch that u/polytope wants is an unsafe cast to the type. For example, we can define vector addition like:

(v Vec{i int}) + (w Vec{i int}) -> Vec{i} :
    unsafe Vec{i}, from a = [] for j::el = range v :
        a + [el + w[j]] 

The sum is assembled as an ordinary list, and then unsafely cast to Vec{i}, without checking its length.

1

u/reflexive-polytope Sep 02 '26

I never said anything about unsafe escape hatches.

Have a look at what I'm doing, if you want an idea of what my aims are.

1

u/Inconstant_Moo 🧿 Pipefish Sep 02 '26

You said "I want the ability to eagerly delimit a finite scope where this invariant can be potentially broken".

1

u/reflexive-polytope Sep 02 '26

Yes, but that doesn't require “unsafe escape hatches”. It requires modularity.

1

u/Inconstant_Moo 🧿 Pipefish Sep 03 '26

Well, maybe my way is more of a hatch and yours is more of a Grand Portal To The Escape Dimension, but it's still an escape from the usual rules, and I assume for the same reason, i.e. that you want that bit to be where you write the basic functions that you can make performant and check and test really thoroughly?

1

u/reflexive-polytope Sep 03 '26

Now I have no idea what you're going on about.

I wasn't talking about any “escape dimension”. I was talking about plain old abstract data types, a concept that's been well known and understood in computer science for decades.