codeinabox@programming.dev to Programming@programming.devEnglish · 1 month agoShip types, not docsshiptypes.comexternal-linkmessage-square9linkfedilinkarrow-up13arrow-down15file-text
arrow-up1-2arrow-down1external-linkShip types, not docsshiptypes.comcodeinabox@programming.dev to Programming@programming.devEnglish · 1 month agomessage-square9linkfedilinkfile-text
minus-squareell1e@leminal.spacelinkfedilinkEnglisharrow-up1·1 month agoThere are solutions to this like having a doc comment right next to the function which is picked up by some API generator. Then it’s easier to keep in sync. That can work well even in languages without explicit parameter types.
There are solutions to this like having a doc comment right next to the function which is picked up by some API generator. Then it’s easier to keep in sync. That can work well even in languages without explicit parameter types.