[Issue 4909] Two suggestions for std.algorithm.schwartzSort()

2015-03-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4909

--- Comment #15 from Ketmar Dark ket...@ketmar.no-ip.org ---
(In reply to Andrei Alexandrescu from comment #14)
 We won't change names without very good reasons.

being *really* hard to remember IS a good reason to change the name. it's a
human psychology again: hard to remember is unattractive, easy to remember is
attractive. seems that D is intentionally unattractive. and name changing
requests are blocked until people wrote enough code, so that such requests can
be finally rejected with that ship is sailed verdict.

--


[Issue 4909] Two suggestions for std.algorithm.schwartzSort()

2014-01-25 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=4909


Andrei Alexandrescu and...@erdani.com changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


--- Comment #11 from Andrei Alexandrescu and...@erdani.com 2014-01-25 
15:11:18 PST ---
Won't change the name, sorry.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 4909] Two suggestions for std.algorithm.schwartzSort()

2014-01-25 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=4909



--- Comment #13 from bearophile_h...@eml.cc 2014-01-25 15:49:05 PST ---
(In reply to comment #12)
 (In reply to comment #11)
  Won't change the name, sorry.
 
 Let's discuss first!

The current name is terrible, it's hard to write, hard to remember, and there
are several better alternatives. I suggest to introduce an alias name, and and
then deprecate the current name.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 4909] Two suggestions for std.algorithm.schwartzSort()

2014-01-25 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=4909


bearophile_h...@eml.cc changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |


--- Comment #12 from bearophile_h...@eml.cc 2014-01-25 15:47:09 PST ---
(In reply to comment #11)
 Won't change the name, sorry.

Let's discuss first!

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 4909] Two suggestions for std.algorithm.schwartzSort()

2014-01-25 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=4909


Andrei Alexandrescu and...@erdani.com changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||FIXED


--- Comment #14 from Andrei Alexandrescu and...@erdani.com 2014-01-25 
15:54:14 PST ---
(In reply to comment #13)
 (In reply to comment #12)
  (In reply to comment #11)
   Won't change the name, sorry.
  
  Let's discuss first!
 
 The current name is terrible, it's hard to write, hard to remember, and there
 are several better alternatives. I suggest to introduce an alias name, and and
 then deprecate the current name.

You've been discussing this since literally years ago. If that serves anyone,
it might have helped you to  learn the name :o). We won't change names without
very good reasons. Unless there are new points and arguments to it, I suggest
we just put an end to this. (Also please don't play the fixed/reopened game.)

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 4909] Two suggestions for std.algorithm.schwartzSort()

2013-05-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4909



--- Comment #10 from bearophile_h...@eml.cc 2013-05-24 15:20:57 PDT ---
(In reply to comment #8)

 (On the other hand to tell the truth nowadays I write that swartz name kind of
 randomly, compile the module, and dmd suggests me the right name, that I copy 
 
 paste (in 2010 there was no spelling corrector). So now the situation is
 bearable).

We are back to an unbearable situation, because currently with UFCS chains D
doesn't give suggestions for wrong names:


import std.algorithm;
void main() {
[red, yellow].shwartzSort!q{ a.length };
}


DMD 2.063beta5 gives:

temp.d(3): Error: no property 'shwartzSort' for type 'string[]'


So please rename that function name to something simpler.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 4909] Two suggestions for std.algorithm.schwartzSort()

2013-03-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4909



--- Comment #7 from Andrei Alexandrescu and...@erdani.com 2013-03-10 19:53:33 
PDT ---
https://github.com/D-Programming-Language/phobos/pull/1197

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 4909] Two suggestions for std.algorithm.schwartzSort()

2013-03-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4909



--- Comment #8 from bearophile_h...@eml.cc 2013-03-10 20:18:10 PDT ---
(In reply to comment #7)
 https://github.com/D-Programming-Language/phobos/pull/1197

 The naming issue will have to wait.

I still hate the schwartzSort name, after more than two years I am not able
to remember its spelling. So I still think any other name will be better, like
keySort, sortBy or what else you prefer.

(On the other hand to tell the truth nowadays I write that swartz name kind of
randomly, compile the module, and dmd suggests me the right name, that I copy 
paste (in 2010 there was no spelling corrector). So now the situation is
bearable).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 4909] Two suggestions for std.algorithm.schwartzSort()

2011-10-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4909



--- Comment #6 from bearophile_h...@eml.cc 2011-10-01 12:58:40 PDT ---
In Clojure language the sort with a key function is named sort-by:
http://clojuredocs.org/clojure_core/1.2.0/clojure.core/sort-by

In Mathematica it is named SortBy:
http://reference.wolfram.com/mathematica/ref/SortBy.html

In Scala it is named sortBy:
http://www.scala-lang.org/docu/files/collections-api/collections_5.html

I suggest to deprecate schwartzSort name. In Phobos the sortBy name (as in
Scala) will be better than schwartzSort.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 4909] Two suggestions for std.algorithm.schwartzSort()

2011-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4909


Andrei Alexandrescu and...@metalanguage.com changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 CC||and...@metalanguage.com
 AssignedTo|nob...@puremagic.com|and...@metalanguage.com


--- Comment #2 from Andrei Alexandrescu and...@metalanguage.com 2011-09-16 
09:07:36 PDT ---
Omitting a string form for the transform is an oversight that should be fixed.

Regarding naming, searching google etc. for schwartz sort yields relevant
results whereas key sort does not. Please refrain from suggesting name changes
of public APIs unless they add significant value.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 4909] Two suggestions for std.algorithm.schwartzSort()

2011-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4909



--- Comment #3 from bearophile_h...@eml.cc 2011-09-16 09:58:00 PDT ---
(In reply to comment #2)

 Regarding naming, searching google etc. for schwartz sort yields relevant
 results whereas key sort does not.

Schwartz sort is a common name and it's meaningful, but I am never able to
remember its correct spell. Being it a very common operation (I use it about as
often as the normal sort), I think it's better to rename it with a name that's
simpler to remember (in spell) and maybe shorter too. Maybe Kagamin is not the
only person that agrees on this.

If you don't like keySort (I was just a quick idea), then we may search for
something else, that possibly uses only short and easy to spell English words.

Google is handy in many situations, but it's not the Alpha and Omega when you
have to give names to things.

Schwart sort gives 9,500 hits.
Decorate Sort Undecorate gives 7,270 hits.


 Please refrain from suggesting name changes of public APIs unless they add 
 significant value.

Sorry, I'll keep suggesting what I think is better/right.

Also, this enhancement request if from 2010-09, and I think I have said that
schwartzSort is a bad name from the beginning, from the first time I have seen
it. So it was not really a name change. It's a name change now.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 4909] Two suggestions for std.algorithm.schwartzSort()

2011-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4909



--- Comment #4 from Andrei Alexandrescu and...@metalanguage.com 2011-09-16 
10:20:10 PDT ---
(In reply to comment #3)
 (In reply to comment #2)
 
  Regarding naming, searching google etc. for schwartz sort yields relevant
  results whereas key sort does not.
 
 Schwartz sort is a common name and it's meaningful, but I am never able to
 remember its correct spell. Being it a very common operation (I use it about 
 as
 often as the normal sort), I think it's better to rename it with a name that's
 simpler to remember (in spell) and maybe shorter too. Maybe Kagamin is not the
 only person that agrees on this.

If you are using schwartzSort heavily, it makes sense to define a local alias
for it. At any rate, you may be overstating your case; if you use something as
frequently as you claim, you _will_ know the spelling.

 If you don't like keySort (I was just a quick idea), then we may search for
 something else, that possibly uses only short and easy to spell English words.

It's not about what I like or not. It's about doing sensible things. It doesn't
seem sensible to simply decree that schwartzSort is inadequate to the extent it
affects the productivity of people using it, and then solve the remaining
problem of finding a different name for it.

 Google is handy in many situations, but it's not the Alpha and Omega when you
 have to give names to things.
 
 Schwart sort gives 9,500 hits.
 Decorate Sort Undecorate gives 7,270 hits.

What would be the argument here? (That you unsubtly insert a typo, thus
underlining how you can't remember the right spelling?)

  Please refrain from suggesting name changes of public APIs unless they add 
  significant value.
 
 Sorry, I'll keep suggesting what I think is better/right.

You are of course welcome to do so, but I'm just suggesting to invest energy in
things that may actually improve the state of affairs. You are suggesting a
change of name from a name that is easily searchable and memorable to a name
that you haven't even found yet but are sure is better.

 Also, this enhancement request if from 2010-09, and I think I have said that
 schwartzSort is a bad name from the beginning, from the first time I have seen
 it. So it was not really a name change. It's a name change now.

The change didn't add value then, either.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 4909] Two suggestions for std.algorithm.schwartzSort()

2011-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4909



--- Comment #5 from bearophile_h...@eml.cc 2011-09-16 10:49:07 PDT ---
(In reply to comment #4)

 (That you unsubtly insert a typo, thus
 underlining how you can't remember the right spelling?)

I have not done that on purpose, I am sorry.

But please trust me when I say I have problems with spelling that word :-)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---