Hacker News new | past | comments | ask | show | jobs | submit login

Coming from Pascal/Delphi background I too find the structured separation useful (unlike the unstructured one in C/C++), though obviously it has a cost of typing the declarations twice.

Then for more modern languages where there's no separation some IDE's can auto-generate the interface declarations along with the associated comments. E.g. Xcode does it for Swift and it's kind of OK.




> though obviously it has a cost of typing the declarations twice

In Lazarus you can have the IDE do the syncing for you (Ctrl+Shift+C). Modern Delphi might have something similar (if not exactly the same thing).




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

Search: