9 ms·
Most of this is true, but I hate to have people continue to give hungarian notation a bad name when idiomatic use of it is quite a lot better than the naïve use
by ghc 15y ago
Most of this is true, but I hate to have people continue to give hungarian notation a bad name when idiomatic use of it is quite a lot better than the naïve use of it decried here.
As an aside, do any other Haskell hackers find that single letter variable names are a lot more usable than in other languages? x:xs, y' and their ilk seem more readable than in other languages and often more readable than long variable names in Haskell.
- ajanuary 15y agoThey did qualify that this isn't an example of the original intent of Hungarian Notation "The following tips will help you corrupt the original intent of Hungarian Notation" But it's not really that clear if you've not heard what proper Hungarian Notation is before.
- waqf 15y agoI think the rule is that very short variable names are a lot more usable in very short scopes (so you don't have time to forget what they denote). I use a lot more short scopes in Haskell than in less-functional languages, though I'm not quite sure why.