News for hackers. Stuff that matters.
Re:Criticizing Hare language approach for generic data struc... by wheelerof4te on Wednesday May 04, 2022 @06:04PM (#31266454)
"Because C makes implementing generic data structures tedious. Is it a good idea to replicate that model?"

A lot of so called "modern" languages make a choice for you. Here is a hash map, over there is a class, have a tuple, set, etc. And they all have a specific way to be used.

In implementing all that, many languages lose on flexibility while gaining general utility. Hare seems to go in the opposite direction, one that makes programmers think hard about the solutions to their problems.

And that is, IMHO, a good thing.

Re:Criticizing Hare language approach for generic data struc... by Doxin on Friday May 06, 2022 @04:34AM (#31282828)
I think the main thing is that e.g. python allows you to reimplement all of its most basic data structures in python if you so desire. There's no real way to reimplement e.g. an array in C. The result being that python could still be useful if it wouldn't come with a bunch of data structures built-in.