HackerTrans
TopNewTrendsCommentsPastAskShowJobs

snvsn

no profile record

comments

snvsn
·geçen yıl·discuss
Topic starts at 37:18
snvsn
·2 yıl önce·discuss
Related: How a Completely Blind Manager/Dev Uses Emacs Every Day - Parham Doustdar - https://emacsconf.org/2019/talks/08/
snvsn
·3 yıl önce·discuss
You can look at the code in the first commit Linus made. It is a very minimal yet functional version of Git.

https://github.com/git/git/commit/e83c5163316f89bfbde7d9ab23...

Edit: To get to this commit run

  $ git log --oneline --reverse master | head -n1
  e83c516331 Initial revision of "git", the information manager from hell
snvsn
·3 yıl önce·discuss
Linus describes this and more in his book - Just for Fun: The Story of an Accidental Revolutionary. Great read
snvsn
·4 yıl önce·discuss
This, exactly!
snvsn
·4 yıl önce·discuss
I had the same reaction initially but then realized that this makes the variable declaration / initialization syntax very consistent.

  variable: Type [= initial_value];

  // initializes foo to an int with an initial value of 43 
  foo: int = 43;

  // initializes main to a (presumably, as I haven't read the
  // spec yet, const)pointer to a function that takes no 
  // arguments and returns an int.
  main: () -> int = {
     ...
  }