Hi Reini, hi all,
Reini Urban wrote: > 2009/11/12 Vincent Pit <perl@profvince.com>: >>> Add ENTER_with_name and LEAVE_with_name, which work identical to ENTER and >>> LEAVE, but when LEAVE_with_name is done it is checked that it corresponds >>> to an ENTER_with_name with the same name. >> I kinda like the idea, but not the name. Since they're going to be spread >> all other the core, I'd rather have something sorter and prettier. > > ENTER_N and LEAVE_N maybe > > _with_name as new public opname is way too long.
I hate getting into bike-shedding discussions (or starting them), but why?
If there is one thing that I abhor about the perl API, it's that everything is shortened to the extreme so that you only grasp the meaning if you already know it all. It steepens the beginning of the learning curve by a sizable factor if not an exponent. So what about ENTER_NAMED or NAMED_ENTER if you want to hint at "naming"?
At least nowadays, people around here seem to spend *a lot* more time reading perl's code for debugging than actually typing all-new code.
Cheers, Steffen
PS: strLT: Does anyone write this regularly? I bet not. So why isn't it string_less_than? Newx: What the hell? It *dropped* the x! vcmp? Yeah. dSOMETHING meaning "declare SOMETHING"... similarly a... and p... It's consistent, yes, but if you're new to perl and just read some core or XS code, it'll take you a while. Same for the PL prefix. *PUSH*, *POP* for the stack. We can't fix these, but can we please try to avoid more obscurity?
|