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

'warnings which real programmers ignore' ... That tells me pretty much all I needed to know about that article.


I can't speak for the author, but I'm pretty sure that was a joke.


I can, and it obviously was.


Well played, sir. Brief in text as well as code. :)


In case you're wondering...

  $ gcc -o yanim yanim.c -lm
  yanim.c:1:1: warning: data definition has no type or storage class [enabled by default]
  yanim.c: In function ‘main’:
  yanim.c:5:24: warning: incompatible implicit declaration of built-in function ‘cos’ [enabled by default]
  yanim.c:5:33: warning: incompatible implicit declaration of built-in function ‘sin’ [enabled by default]


Warnings are to be expected if your goal is to make your program as short as possible.




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

Search: