Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In my experience the more variable argument often comes last, presumably for easy reuse. For example...

  $chown user1 file1
  $chown user1 file2

  $ln -s file1 file2
  $ln -s file1 file3
...seems more likely than...

  $chown user1 file1
  $chown user2 file1

  $ln -s file1 file2
  $ln -s file3 file2


That's the reason behind a most of the argument orders in the Haskell standard library: To ease Currying.


Why did you do that? Now I really want to implement a const and flip for text arguments :)


That could be a nice command line tool. Please include a Data.Function.on, and find a way to make it useful.

flip would actually be quite useful for me on grep. I often search the some corpus of text, but change the pattern.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: