• insomniac_lemon@lemmy.cafe
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    12 days ago

    I feel it’s more true for Nim-lang. No dealing with pointers (it’s possible, just not a normal thing like int**, Nim has newer memory management options like arc/orc). There’s also stuff like for i in 0 .. 9 (and ranges like that have more options/uses too)**

    I mean I guess there is overlap (both languages have UFCS and interop). So it might come down to syntax or specific implementation. Though I imagine for those who like the braces style, there are other options to look at like Zig (or Rust, there is complexity but also popularity).

    I know there is some difficulty when it comes to a language being niche (at least when lacking knowledge), and that’s certainly my experience with Nim.

    * the asterisk is instead used for public+importable

    ** I guess D does have this as foreach (i; 0 .. 3), though not quite the same