sprogramming_languages·Programming Languagesbysoc Library Design: Naming Conventions – Option & Resulthttps://soc.me/languages/naming-conventions-option-and-resultOpen linkView original on programming.dev2Comments3
ssoc programming.dev2Hide 2 repliesMany languages' Option and Result types suffer from an organically-grown and therefore inconsistently named set of functions that operate on them. We can do better! The article demonstrates how a full set of useful methods with predictable names can be derived from few, simple rules.1
mobotsar replysh.itjust.works1Hide 1 reply Pass and Fail You really wanted them to have the same number of letters, eh? Haha.1
ssoc replyprogramming.devYeah, avoids pointless debates whether they should be lined up in matches or not. :-)1
Many languages'
OptionandResulttypes suffer from an organically-grown and therefore inconsistently named set of functions that operate on them.We can do better! The article demonstrates how a full set of useful methods with predictable names can be derived from few, simple rules.
You really wanted them to have the same number of letters, eh? Haha.
Yeah, avoids pointless debates whether they should be lined up in matches or not. :-)