Why Nostr? What is Njump?
2024-09-03 13:27:05
in reply to

arclight on Nostr: Other C 'niceties' I don't miss are three-int-in-a-trenchcoat 'types'. Logical ...

Other C 'niceties' I don't miss are three-int-in-a-trenchcoat 'types'. Logical variables and ints aren't interchangeable, neither are character data and ints. `if (1) ...` is properly an error as is `int uc = 'a' - 'A';`. There's no need to memorize whether 0 is logical true or false when there's a hard distinction between numeric and logical types.

I see the value in those sorts of shortcuts if you come from an assembly or system programming background and if you're building a research tool instead of a production tool. That magic and looseness is deadly in application space where you expect types to be meaningful and you rely on the compiler to not let you do something nonsensical like log("tuba") or sin("pi over two")
Author Public Key
npub15cc3msw9nppjswuu3lx4e63rtw6jspcpllvqgeyhmevlc3p50dlqrfuqn8