• 3 Posts
  • 10 Comments
Joined 2 years ago
cake
Cake day: August 29th, 2023

help-circle
  • socOPtoProgramming LanguagesUnified Condition Expressions
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    12 days 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.









  • Case insensitive FSs aren’t a new thing.

    More precisely, they came up in a time where Unicode was not a thing.

    Yes, you need to attach the locale to the filename. No, I have no idea off the top of my head of how different file systems encode or store that.

    They don’t. None of them.

    Or, if it is, then let’s go back to eight characters from the English alphabet in all caps. 8.3 filenames. Why not? […] Why are spaces, cyrillic, special characters and long names worth doing but case insensitivity isn’t?

    Because you cannot have both.

    It is either “spaces, cyrillic, special characters and long names” or case insensitivity.


  • What blog?

    To spell it out for you, very slowly: Casing is locale-sensitive.

    You cannot determine whether file A and file B have the same case without taking the language the filename was written in into account.

    Which means you need to somehow attach the locale to every file (name). Your browser could implement something to add that (semi-)automatically, but if grandma is creating a file from scratch, there is only so much you can do.

    I hope this helps you understand why the thing you propose is stupid.


  • Why do have such a strong opinion on things you –rather obviously– understand very poorly?

    Why would grandma need to specifiy the locale?

    Yeah, maybe figure this one out for yourself to get you on track for learning something.

    someone spontaneously brings up non-latin alphabets as if they are equivalent to case sensitivity for no good reason

    That sentence makes no sense. You don’t have to agree on things, but at least be coherent in your objection.