The syntax is of course attractive (coming from Rust), and I'd love to replace more of my posix scripts with something saner. I struggle understanding whether the utility of having language literals for IP addresses, IP prefixes, and AS numbers is worth it though [0]. It seems like the confusion added by having custom built-ins like this for one particular domain, in addition to the unclear scoping (what could later also deserve being a language literal), combined with special-case errors as famous in e.g. the YAML Norway problem, makes it seem like such features are better left as some general extension / macro / library capability.<p>Nix is a language with built-in support for URI literals typed as strings [1], which is a source of confusion and edge-cases, and I believe the feature is now discouraged in general use.<p>[0] <a href="https://roto.docs.nlnetlabs.nl/en/stable/reference/language_reference.html#literals" rel="nofollow">https://roto.docs.nlnetlabs.nl/en/stable/reference/language_...</a><p>[1] <a href="https://nix.dev/manual/nix/2.34/language/string-literals" rel="nofollow">https://nix.dev/manual/nix/2.34/language/string-literals</a>