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

There does seem to be some type inference going on though "auto a; a= 'hi!';", or maybe it's just defaulting to an int/pointer type? If it is type inference it would have been awful to have the variable declaration at the top but the type declaration strewn through the function.

So it looks as though C switched from default static to default auto? I wonder if the programmers of the time sneered at the waste this added?



There are no types in B, only words. Auto denotes storage.


Yes, for example, in old C the type was implicitly int unless mentioned. "Long" means long int" ;)




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

Search: