pascal climbed from 16th to 11th place in tiobe index during last year.
interesting, important discussion https://github.com/modula3/cm3/issues/42
i think the requestor is right. may be i need tot initialize the array with other values, why spend time to initialize it to zeros?
#programming #programming_languages #modula #modula-3 #design
First things first: printf is expecting a valid (i.e. non-NULL) pointer for its %s argument so passing it a NULL is officially undefined. It may print “(null)” or it may delete all files on your hard drive–either is correct behavior as far as ANSI is concerned (at least, that’s what Harbison and Steele tells me.)
#programming #c #null
i guess, may be preference for tabs or spaces is connected to how low level person is that, if it’s a person who prefers more granular control, even when not necessary, they would prefer spaces over tabs. #programming #tab #space
What I found out was that even though there are frustrating moments when inheritance IS actually the optimal solution, being forced to use composition has helped me think differently about how to structure my code for the better. Inheritance makes it too easy to design yourself into a trap where refactoring becomes extremely expensive even when necessary. Go is designed to make refactoring much easier by doing things like forcing the use of composition.