Skip to content

Instantly share code, notes, and snippets.

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%)
// A small vtable example written in C.
// Enjoy :)
//// Interface definition ////
typedef struct {
void (*feed)(void* self, float amount);
} FeedableTable;