Crystal: Alias String#gsub to replace or deprecate gsub

Created on 21 Sep 2020  路  2Comments  路  Source: crystal-lang/crystal

All 2 comments

some people do not like deprecation, so alias.
like gsub use gsub
replace for beginners. and other language people.

I vote against alias, I've always agree with crystal's non/mininum-alias policy, it is great to only have one way, easier for beginners and for experienced crystal programmers.

It should be either left as sub and gsub or change (deprecated) to the new name (replace and greplace?).

Was this page helpful?
0 / 5 - 0 ratings