-
Notifications
You must be signed in to change notification settings - Fork 0
Minify stdlib parameter names #42
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestlowNice to have, no rushNice to have, no rushstdlibStandard library modules and builtinsStandard library modules and builtins
Description
Activity
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestlowNice to have, no rushNice to have, no rushstdlibStandard library modules and builtinsStandard library modules and builtins
Every stdlib function should use the shortest, easily understood parameter name possible.
For example,
say(message: ...)becomessay(msg: ...). The goal is brevity without sacrificing clarity. A developer reading the call site should still immediately know what the argument means.Guidelines
msg,val,fmt,src,dst,buf,len,idx,fn,cb,sep,delim,str,num,err,cmd,dir,env,cfg,ctx,opt,max,minname,path,key,port)nis fine for a count in a math context, butnameshouldn't becomenScope
All public stdlib functions across every
std/*module. This is a breaking change for any code using named arguments, so it should land as a single pass.