sprogramming_languages·Programming Languagesbysoc Library Design: Naming Conventions – Option & Resulthttps://soc.me/languages/naming-conventions-option-and-resultOpen linkView original on programming.dev2Comments3Reply
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.1Reply
mobotsar replysh.itjust.works1Hide 1 reply Pass and Fail You really wanted them to have the same number of letters, eh? Haha.1Reply
ssoc replyprogramming.devYeah, avoids pointless debates whether they should be lined up in matches or not. :-)1Reply
3 replies
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. :-)