5 ms·
>The split between source and headers is a key to good encapsulation. From a software design point of view, it's good way to break long dependency chains. Yes,
by kybernetyk 11y ago
>The split between source and headers is a key to good encapsulation. From a software design point of view, it's good way to break long dependency chains.
Yes, I'm currently working with Swift and I'm really missing header files. I just can't figure out how to get a quick overview of say a class' public interface without having to scroll through pages of implementation code.
Header files can be a real pain. But they are useful.
- apetrovic 11y agoIf you're working in XCode, use Navigate -> Jump To Generated Interface. In any other editor (including XCode) and any other language you can use code folding to quickly see all functions.
- Too 11y agoI think you missed his sarcasm.
- kybernetyk 11y agoThank you! I didn't know about this. This will improve my workflow considerably :)