2 ms·
That still has lots of noise, arguably. Angular brackets somehow feel more noisy to me than the other brackets/braces, they work better as arrows and inequality
by andreasvc 12y ago
That still has lots of noise, arguably. Angular brackets somehow feel more noisy to me than the other brackets/braces, they work better as arrows and inequality operators. A single colon would also look better, I think, and the underscore could be dropped...
- pcwalton 12y ago: doesn't work because that's for type ascription (i.e. specifying what the type of something is). The angle brackets were chosen because they match the way nearly all C-family languages except D notate generics: C++, Java, C#, Swift, Dart, TypeScript, ActionScript, … The underscore improves readability here, IMO. We use underscores where they improve readability, similarly to PEP 8.