Get the latest tech news

Self-referential functions and the design of options (2014)


I've been trying on and off to find a nice way to deal with setting options in a Go package I am writing. Options on a type, that is. The p...

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Design

Design

Photo of Options

Options

Photo of self

self

Related news:

News photo

Shanghai scientists create computer chip in fiber thinner than a human hair, yet can withstand crushing force of 15.6 tons — fiber packs 100,000 transistors per centimeter | This Fiber Integrated Circuit (FIC) design was inspired by sushi rolls.

News photo

Upcoming ‘Foldable iPhone’ Design Leaked With iPad-Style Button Placement

News photo

Show HN: Zuckerman – minimalist personal AI agent that self-edits its own code