Comment

Comment by scardine

The deal breaker for me is the variable name normalization:

userName == user_name == username == uS_eR_aN_mE

It used to be totally case insensitive now it is case sensitive for the first letter. Underscores are ignored: two identifiers are considered equal if the following algorithm returns true:

    proc sameIdentifier(a, b: string): bool =
      a[0] == b[0] and
        a.replace(re"_|–", "").toLower == b.replace(re"_|–", "").toLower
For me it is a capital violation of the "principle of least astonishment".
parent scardine 10 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton