I wonder how weird fonction-pointers are in C to folks from languages without such a thing.

@lanodan It isn't too weird. Python has something similar. You can name a reference to a function if you don't include the parentheses.

Follow

@lanodan And I just realize that the command design pattern is just to compensate for the lack of function pointers in some languages.

en.wikipedia.org/wiki/Command_

· · Web · 1 · 0 · 1
@xianc78 @lanodan
Many design patterns are this way
OOP idioms to compensate for a language's (usually Java) limitations

@Eyoson @lanodan Yeah. Java is just a mountain of design pattern duct tape.

Sign in to participate in the conversation
Game Liberty Mastodon

Mainly gaming/nerd instance for people who value free speech. Everyone is welcome.