Feature #5361
closedLice?
Added by trans (Thomas Sawyer) about 14 years ago. Updated over 13 years ago.
Description
Err... why is there a new String method for getting the lice of bytes?
'hello'.byteslice(2, 2) # => "ll"
I don't like getting lice ;)
(In other words what happened to good old readable underscores?)
Files
feature_5361.patch (1.73 KB) feature_5361.patch | ayumin (Ayumu AIZAWA), 01/04/2012 07:35 PM |
Updated by agrimm (Andrew Grimm) almost 14 years ago
Actions
#1
[ruby-core:40539]
Ruby 1.9.3 has been released with the method spelt byteslice. I suspect it will make this spelling change less likely, as people won't want to use byte_slice in Ruby 2.0 but remember to use byteslice in Ruby 1.9.3 patchlevel 0.
Updated by ayumin (Ayumu AIZAWA) almost 14 years ago
Actions
#2
[ruby-core:41846]
- Target version set to 2.0.0
Updated by ayumin (Ayumu AIZAWA) almost 14 years ago
Actions
#3
[ruby-core:41849]
- File add-alias_methods.patch added
I'm proposing patch on [ruby-dev:45068]
Updated by ayumin (Ayumu AIZAWA) almost 14 years ago
Actions
#4
[ruby-dev:45068]
$B$"$$$6$o$G$9!#(B
byteslice$B$H$$$&%a%=%C%IL>$@$H(Bbytes lice$B$HFI$a$F$7$^$C$F%$%1$F$J$$$H$$$&$3$H$N$h$&$G$9$,!"(B
alias$B$G(Bbyte_slice$B$H$$$&%a%=%C%I$rMQ0U$9$k$N$O$$$+$,$G$7$g$&$+!#(B
$BF1$8$h$&$JM}M3$GL>A0$,JQ$@!J$H$$$o$l$=$&$J!K%a%=%C%I$K(B bytesize $B$,$"$j$^$9$N$G$3$A$i$b(B
byte_size $B$H$$$&(B alias $B$rMQ0U$7$F$O$$$+$,$G$7$g$&$+!#(B
Updated by ayumin (Ayumu AIZAWA) almost 14 years ago
Actions
#5
- File deleted (
add-alias_methods.patch)
Updated by ayumin (Ayumu AIZAWA) almost 14 years ago
Actions
#6
- File deleted (
add-alias_methods.patch)
Updated by ayumin (Ayumu AIZAWA) almost 14 years ago
Actions
#7
[ruby-core:41899]
- File feature_5361.patch feature_5361.patch added
add documentation for byte_slice and byte_size.
Updated by mame (Yusuke Endoh) over 13 years ago
Actions
#8
[ruby-core:43714]
- Status changed from Open to Assigned
- Assignee set to matz (Yukihiro Matsumoto)
Updated by matz (Yukihiro Matsumoto) over 13 years ago
Actions
#9
[ruby-core:43768]
- Status changed from Assigned to Rejected
Don't deny your potential to learn.
Matz.
Updated by trans (Thomas Sawyer) over 13 years ago
Actions
#10
[ruby-core:43776]
Or to get bit!