soc

joined 2 years ago
[–] soc@programming.dev 6 points 3 weeks ago

Packages are usually provided by distribution packagers, not by the developers of the code itself.

[–] soc@programming.dev 1 points 3 weeks ago (3 children)

This submission reminded me that I also had some articles on this topic that people may find interesting.

[–] soc@programming.dev 1 points 3 weeks ago (3 children)

That's still a workaround to try and keep a completely artificial distinction alive.

Even if I didn't need [] for types, I still wouldn't want "some functions use (), some functions use []" as a language rule.

[–] soc@programming.dev 2 points 3 weeks ago (1 children)

Oh, good idea ... any preference on the first? :-)

[–] soc@programming.dev 1 points 1 month ago (5 children)

Wasting a perfectly good pair of brackets on some random function call and then suffering for it in many other places sounds more like syntactic salt.

[–] soc@programming.dev 1 points 1 month ago (7 children)

What's a form of access but a function from some index type to some element type?

[–] soc@programming.dev 3 points 1 month ago

Happily using it for presentation slides.

[–] soc@programming.dev 1 points 1 month ago (1 children)

If you read more than just the headings, you'd find out that your objections have been addressed in the article. ;-)

[–] soc@programming.dev 1 points 1 month ago* (last edited 1 month ago)

Sure, there are some worse/more limited predecessors – my design was partially motivated by a desire to improve upon these.

For instance, that ML-derivative you are using for your examples

  • very likely still has if then else in the language, thus making it not unified
  • desperately tries to emulate functionality with guards that simply comes out of the box with my approach
  • relies on the ultimate hack of "match on unit", because match is very limited in which coding patterns it can express

Also, none of the examples are "more clear" or "have less magic":
Maybe they are more "familiar" to you personally, but that's about it.

Too me they just look clunky, full of accidental complexity and trying to work around a poor/limited language design.

view more: ‹ prev next ›