Elektrine lite

← Feed

@zenmumbler@mastodon.gamedev.place

2026-03-27 11:29 UTC

@sschoener@mastodon.gamedev.place I maintain that Pascal's INTERFACE and IMPLEMENTATION parts of its UNITs (I have to uppercase…) is superior still and is what header-only C files try to emulate. I prefer not having 2 files (open) for the same content but that is just me of course, but yes! Having to state out the interface together in a block (header or INTERFACE part) allows both the author and reader of a library to get a quick overview and to see if things still make sense together. Thanks for the write-up!

Replies (1)

  • @zenmumbler@mastodon.gamedev.place @sschoener@mastodon.gamedev.place Pascal came into my mind too. Variable declaration at the beginning of the function/method was a clear too.

    Open ##4570025