Skip to content

Instantly share code, notes, and snippets.

// A small vtable example written in C.
// Enjoy :)
//// Interface definition ////
typedef struct {
void (*feed)(void* self, float amount);
} FeedableTable;

Pseudocode

I asked the people on the r/ProgrammingLanguages Discord server to "implement a function that prints N numbers of the Fibonacci sequence". For fun, I decided to analyse the results a bit.

Function keyword

  • no keyword: 4 (28.57%)
  • no function declared: 3 (21.42%)
  • fn: 2 (14.28%)
  • def: 2 (14.28%)