about summary refs log tree commit diff
path: root/src/test/codegen/stack-alloc-string-slice.rs
diff options
context:
space:
mode:
authorLemmingAvalanche <haugsbakk@yahoo.no>2014-07-04 13:19:42 +0200
committerLemmingAvalanche <haugsbakk@yahoo.no>2014-08-10 22:51:22 +0200
commit14e245bd47d3ac1a981d50a6f752aa27cca7d85e (patch)
tree481feb6a95bad684ca0fb53431d5a48048b8b5b3 /src/test/codegen/stack-alloc-string-slice.rs
parent5012b858ed939ced9e4ac6c7a31c0a038661dd92 (diff)
downloadrust-14e245bd47d3ac1a981d50a6f752aa27cca7d85e.tar.gz
rust-14e245bd47d3ac1a981d50a6f752aa27cca7d85e.zip
Note naming convention of lists (xs, ys, ...)
People reading the tutorial may not be familiar with the convention of naming lists, vectors and the like as xs, ys, etc. Without some explanation of the reasoning behind it, it might come off as just throwaway non-descriptive names. Languages like Haskell gets flak from using short, non-descriptive names, while in reality, there are clear conventions and reasons for using certain terse variable names.

I assumed that the convention came from a language like Haskell, so I
tailored the explanation according to that.
Diffstat (limited to 'src/test/codegen/stack-alloc-string-slice.rs')
0 files changed, 0 insertions, 0 deletions