Hacker News new | ask | show | jobs
by cgmg 3212 days ago
Readability is determined by more than familiarity.
3 comments

Agreed, but that is quite readable to someone familiar with ML-based languages: Define a function get_internal which takes a map from objects of type 'a to type 'b, and an object of type 'a, and return a wrapper around objects of type 'b or "undefined"s. Action of get_internal is ""get" [@@bs.send]", which I don't recognize. I would guess it's a javascript interop syntax, which returns a function consistent with get_internal's type signature.

You're not constrained to use one-letter names for type variables, or to drop names of argument variables, but it turns out to be very handy, and it only takes reading a couple of hundred lines of code to get comfortable with this notation.

That's true, but since there are many people that find Reason (OCaml) readable I am going to say familiarity is the biggest problem here.
do you have examples in mind that are orthogonal to familiarity?
Language design. Even if you're very familiar with Malbolge, other languages are far more readable.