Re: Stupid little iota of an idea

2011-02-20 Thread Justin Bogner
Don writes: > I don't like interval at all, because I don't think it includes the > notion of 'stepping'. An interval is just, everything from A to B, > without necessarily specifying how you reach everything in that > interval. Whereas iota includes the stepping. > (I would like to see intervals

Re: Stupid little iota of an idea

2011-02-20 Thread Nick Sabalausky
"Don" wrote in message news:ijmndc$3e5$1...@digitalmars.com... > Nick Sabalausky wrote: >> >> I like "interval", too. >> >> I do think the name "iota" is a nice extra reason to just use a..b or >> a..b:c like you say. It also makes it clear that it's a series of >> discrete values rather than

Re: Stupid little iota of an idea

2011-02-18 Thread Simen kjaeraas
Lars T. Kyllingstad wrote: I guess steps() would be a possible name for iota(), but then I would have to come up with a new name for my range. ;) Might I suggest iota()? ;) -- Simen

Re: Stupid little iota of an idea

2011-02-18 Thread Lars T. Kyllingstad
On Fri, 18 Feb 2011 22:10:37 +0100, Don wrote: > Nick Sabalausky wrote: >> I like "interval", too. >> >> I do think the name "iota" is a nice extra reason to just use a..b or >> a..b:c like you say. It also makes it clear that it's a series of >> discrete values rather than a true mathematical ra

Re: Stupid little iota of an idea

2011-02-18 Thread Don
Nick Sabalausky wrote: "bearophile" wrote in message news:ij473k$1tfn$1...@digitalmars.com... Andrei: Aside from the fact that "range" has another meaning in D, the word does not convey the notion that iota adds incremental steps to move from one number to another. "Iota" does convey that not

Re: Stupid little iota of an idea

2011-02-16 Thread Bruno Medeiros
On 11/02/2011 23:55, Andrei Alexandrescu wrote: On 2/11/11 7:07 AM, foobar wrote: Andrei Alexandrescu Wrote: I don't find the name "iota" stupid. Andrei I want to make a few comments, arising from several different posts in this discussion. First, before this discussion that Ary sta

Re: Stupid little iota of an idea

2011-02-13 Thread bearophile
Andrej Mitrovic: > I'm getting more and more convinced to join the iota camp. The new > syntax barely saves any characters, and is potentially confusing. Simen kjaeraas: > This is also an interesting point. If a..b were to be a separate type, > opSlice would no longer need to exist, it could be

Re: Stupid little iota of an idea

2011-02-13 Thread spir
On 02/13/2011 01:17 PM, foobar wrote: Lutger Blijdestijn Wrote: first rule of usability: don't listen to users http://www.useit.com/alertbox/20010805.html I fail to see how that page ( which talks about website design ) applies to what I've said. It says that you should look at what peopl

Re: Stupid little iota of an idea

2011-02-13 Thread foobar
Andrei Alexandrescu Wrote: > On 2/13/11 3:15 AM, foobar wrote: > > Andrei Alexandrescu Wrote: > > > >> On 2/11/11 7:07 AM, foobar wrote: > >>> Andrei Alexandrescu Wrote: > >>> > > I don't find the name "iota" stupid. > > Andrei > >>> > >>> Of course _you_ don't. However practic

Re: Stupid little iota of an idea

2011-02-13 Thread Lutger Blijdestijn
foobar wrote: > Lutger Blijdestijn Wrote: > >> >> first rule of usability: don't listen to users >> >> http://www.useit.com/alertbox/20010805.html >> > > I fail to see how that page ( which talks about website design ) applies > to what I've said. It says that you should look at what people _

Re: Stupid little iota of an idea

2011-02-13 Thread retard
Sun, 13 Feb 2011 08:32:31 +0200, so wrote: >> 1. and .1 are very minor improvements mainly for the laziest developers >> out there. It's getting harder and harder to get rid of them. Avoiding >> these kind of conflicts between core language features should be >> priority #1. > > For lazy develope

Re: Stupid little iota of an idea

2011-02-13 Thread Andrei Alexandrescu
On 2/13/11 3:15 AM, foobar wrote: Andrei Alexandrescu Wrote: On 2/11/11 7:07 AM, foobar wrote: Andrei Alexandrescu Wrote: I don't find the name "iota" stupid. Andrei Of course _you_ don't. However practically all the users _do_ find it poorly named, including other developers in the proj

Re: Stupid little iota of an idea

2011-02-13 Thread foobar
Lutger Blijdestijn Wrote: > > first rule of usability: don't listen to users > > http://www.useit.com/alertbox/20010805.html > I fail to see how that page ( which talks about website design ) applies to what I've said. It says that you should look at what people _do_ instead of what they _sa

Re: Stupid little iota of an idea

2011-02-13 Thread Lutger Blijdestijn
foobar wrote: > Andrei Alexandrescu Wrote: > >> On 2/11/11 7:07 AM, foobar wrote: >> > Andrei Alexandrescu Wrote: >> > >> >> >> >> I don't find the name "iota" stupid. >> >> >> >> Andrei >> > >> > Of course _you_ don't. However practically all the users _do_ find it >> > poorly named, including o

Re: Stupid little iota of an idea

2011-02-13 Thread foobar
Andrei Alexandrescu Wrote: > On 2/11/11 7:07 AM, foobar wrote: > > Andrei Alexandrescu Wrote: > > > >> > >> I don't find the name "iota" stupid. > >> > >> Andrei > > > > Of course _you_ don't. However practically all the users _do_ find it > > poorly named, including other developers in the projec

Re: Stupid little iota of an idea

2011-02-12 Thread spir
On 02/12/2011 10:57 PM, Andrej Mitrovic wrote: I'd maybe vote for the syntax change. But maybe we could extend the array slice syntax to construct ranges: filter!`a % 2 == 0`([1..5]) auto r = [0 .. 5]; So if the slice sits on its own it becomes a range. Or is this too scary/ambiguous? I don't

Re: Stupid little iota of an idea

2011-02-12 Thread so
1. and .1 are very minor improvements mainly for the laziest developers out there. It's getting harder and harder to get rid of them. Avoiding these kind of conflicts between core language features should be priority #1. For lazy developers? i don't think so, how lazy one can get anyways, after

Re: Stupid little iota of an idea

2011-02-12 Thread Nick Sabalausky
"Olivier Pisano" wrote in message news:ij5mb2$spd$1...@digitalmars.com... > Le 12/02/11 10:36, Olivier Pisano a écrit : >> 4) I believe a function name should tell what it does. An alphabet >> letter (greek or not) is a poor indication and should be avoided. "sum" >> is a more reasonable choice t

Re: Stupid little iota of an idea

2011-02-12 Thread Simen kjaeraas
Nick Sabalausky wrote: f[1..5] // opSlice with ints, or opIndex with a range? This is also an interesting point. If a..b were to be a separate type, opSlice would no longer need to exist, it could be a simple overload of opIndex. This would easily enable multi-dimensional slicing, which curre

Re: Stupid little iota of an idea

2011-02-12 Thread Andrej Mitrovic
foreach (step; steps) { writeln( [iota(min, max, step), iota(min, max, step+1)] ); writeln( [[min..max : step], [min..max : step+1]] ); max += step; } Sorry for spamming. :) I'm getting more and more convinced to join the iota camp. The new syntax barely saves

Re: Stupid little iota of an idea

2011-02-12 Thread Andrej Mitrovic
This would make more sense as a comparison: auto iot1 = [iota(0, 10, 2), iota(0, 10, 3)]; auto iot2 = [2 : iota(0, 10, 2), 3 : iota(0, 10, 3)]; auto syn1 = [[0..10 : 2], [0..10 : 3]]; auto syn2 = [2: [0..10 : 2], 3: [0..10 : 3]]; // iot1 == [[0, 2, 4, 6, 8], [0, 3, 6, 9]]

Re: Stupid little iota of an idea

2011-02-12 Thread Andrej Mitrovic
But again, I don't know who uses ranges as keys to an AA. So my guess is you would see this very rarely in code, so it's not a fair comparison to iota. It does show that in this case there's no ambiguity, unless I'm mistaken.

Re: Stupid little iota of an idea

2011-02-12 Thread Andrej Mitrovic
On 2/12/11, Peter Alexander wrote: > On 12/02/11 9:16 PM, Nick Sabalausky wrote: >> "Andrei Alexandrescu" wrote in message >>> Not all users dislike iota, and besides arguments ad populum are >>> fallacious. Iota rocks. But have at it - vote away, and I'll be glad if a >>> better name for iota co

Re: Stupid little iota of an idea

2011-02-12 Thread Nick Sabalausky
"Jacob Carlborg" wrote in message news:ij6emq$27so$2...@digitalmars.com... > On 2011-02-12 02:25, bearophile wrote: >> Michel Fortin: >> >>> No one noticed yet that the a..b:c syntax causes ambiguity? Tell me, >>> how do you rewrite this using the new proposed syntax: >>> >>> auto aa = [iota(a, b

Re: Stupid little iota of an idea

2011-02-12 Thread Nick Sabalausky
"Andrej Mitrovic" wrote in message news:mailman.1581.1297547851.4748.digitalmar...@puremagic.com... > I'd maybe vote for the syntax change. > > But maybe we could extend the array slice syntax to construct ranges: > > filter!`a % 2 == 0`([1..5]) > auto r = [0 .. 5]; > > So if the slice sits on it

Re: Stupid little iota of an idea

2011-02-12 Thread bearophile
Peter Alexander: > As Michel pointed out, a..b:c is ambiguous. > > auto foo = [ 1..10 : 2, 2..20 : 3 ]; > > Is foo an AA of ranges to ints, or an array of stepped ranges? Lazy strided intervals as associative array keys is not a common need. But there are few other situations: auto r = pred ?

Re: Stupid little iota of an idea

2011-02-12 Thread Peter Alexander
On 12/02/11 9:16 PM, Nick Sabalausky wrote: "Andrei Alexandrescu" wrote in message Not all users dislike iota, and besides arguments ad populum are fallacious. Iota rocks. But have at it - vote away, and I'll be glad if a better name for iota comes about. I vote "a..b:c" and "step" As Mich

Re: Stupid little iota of an idea

2011-02-12 Thread bearophile
Andrej Mitrovic: > I'd maybe vote for the syntax change. > > But maybe we could extend the array slice syntax to construct ranges: > > filter!`a % 2 == 0`([1..5]) > auto r = [0 .. 5]; > > So if the slice sits on its own it becomes a range. Or is this too > scary/ambiguous? In Python there are

Re: Stupid little iota of an idea

2011-02-12 Thread Andrej Mitrovic
I'd maybe vote for the syntax change. But maybe we could extend the array slice syntax to construct ranges: filter!`a % 2 == 0`([1..5]) auto r = [0 .. 5]; So if the slice sits on its own it becomes a range. Or is this too scary/ambiguous? I don't really like them alone: filter!`a % 2 == 0`(1..5

Re: Stupid little iota of an idea

2011-02-12 Thread Nick Sabalausky
"Andrei Alexandrescu" wrote in message news:ij4iel$ig$2...@digitalmars.com... > On 2/11/11 7:07 AM, foobar wrote: >> Andrei Alexandrescu Wrote: >> >>> >>> I don't find the name "iota" stupid. >>> >>> Andrei >> >> Of course _you_ don't. However practically all the users _do_ find it >> poorly name

Re: Stupid little iota of an idea

2011-02-12 Thread Peter Alexander
On 11/02/11 11:55 PM, Andrei Alexandrescu wrote: Not all users dislike iota, and besides arguments ad populum are fallacious. Iota rocks. But have at it - vote away, and I'll be glad if a better name for iota comes about. Andrei finiteArithmeticProgression :-) Come on! It's the only name that

Re: Stupid little iota of an idea

2011-02-12 Thread retard
Sat, 12 Feb 2011 19:42:59 +0200, Max Samukha wrote: > On 02/12/2011 07:12 PM, retard wrote: >> >> You're just arguing against his principles: >> >> "..besides arguments ad populum are fallacious" >> >> http://www.digitalmars.com/webnews/newsgroups.php? >> art_group=digitalmars.D&article_id=129453

Re: Stupid little iota of an idea

2011-02-12 Thread Jacob Carlborg
On 2011-02-12 18:18, bearophile wrote: Jacob Carlborg: Why can't we just get rid of that floating point literal syntax, it just causes problem. I agree, the interval syntax (with or without optional stride) may be allowed for integral values only. (Elsewhere I have even suggested to disallo

Re: Stupid little iota of an idea

2011-02-12 Thread spir
On 02/12/2011 06:02 PM, Jacob Carlborg wrote: On 2011-02-12 00:55, Andrei Alexandrescu wrote: On 2/11/11 7:07 AM, foobar wrote: Andrei Alexandrescu Wrote: I don't find the name "iota" stupid. Andrei Of course _you_ don't. However practically all the users _do_ find it poorly named, includ

Re: Stupid little iota of an idea

2011-02-12 Thread Jérôme M. Berger
Jonathan M Davis wrote: > And how on earth does iota make sense in this context? I don't see how you > could > possibly look at iota(0, 10) or iota(2, 21, 3); and think that it _anything_ > to > do with its dictionary definiton (per: http://www.merriam- > webster.com/dictionary/iota ) > > 1: t

Re: Stupid little iota of an idea

2011-02-12 Thread Jérôme M. Berger
Jonathan M Davis wrote: > you're not going to misunderstand what it [iota] means based on its name. > Again, people *will* and actually, people *have* misunderstood it based on its name. Jerome -- mailto:jeber...@free.fr http://jeberger.free.fr Jabber: jeber...@jabber.fr

Re: Stupid little iota of an idea

2011-02-12 Thread Max Samukha
On 02/12/2011 07:12 PM, retard wrote: You're just arguing against his principles: "..besides arguments ad populum are fallacious" http://www.digitalmars.com/webnews/newsgroups.php? art_group=digitalmars.D&article_id=129453 Yes, I use ad populum all the time for its effectiveness. I'll try

Re: Stupid little iota of an idea

2011-02-12 Thread bearophile
Jacob Carlborg: > Why can't we just get rid of that floating point literal syntax, it just > causes problem. I agree, the interval syntax (with or without optional stride) may be allowed for integral values only. (Elsewhere I have even suggested to disallow number literals like 1. or .1 :-) )

Re: Stupid little iota of an idea

2011-02-12 Thread retard
Sat, 12 Feb 2011 17:54:24 +0200, Max Samukha wrote: > On 02/12/2011 04:52 PM, Jonathan M Davis wrote: >> On Saturday 12 February 2011 06:21:15 bearophile wrote: >>> Jonathan M Davis: On Saturday 12 February 2011 03:25:29 Andrei Alexandrescu wrote: > And that's part of what makes it best.

Re: Stupid little iota of an idea

2011-02-12 Thread Jacob Carlborg
On 2011-02-12 00:55, Andrei Alexandrescu wrote: On 2/11/11 7:07 AM, foobar wrote: Andrei Alexandrescu Wrote: I don't find the name "iota" stupid. Andrei Of course _you_ don't. However practically all the users _do_ find it poorly named, including other developers in the project.. This is t

Re: Stupid little iota of an idea

2011-02-12 Thread Jacob Carlborg
On 2011-02-12 02:25, bearophile wrote: Michel Fortin: No one noticed yet that the a..b:c syntax causes ambiguity? Tell me, how do you rewrite this using the new proposed syntax: auto aa = [iota(a, b, c): 1, iota(d, e): 2]; Right, that's why in another post I have said that syntax rep

Re: Stupid little iota of an idea

2011-02-12 Thread spir
On 02/12/2011 02:05 PM, Andrei Alexandrescu wrote: On 2/12/11 6:52 AM, spir wrote: On 02/12/2011 12:25 PM, Andrei Alexandrescu wrote: On 2/12/11 5:02 AM, bearophile wrote: Jonathan M Davis: interval is slightly better, but as you mention, the step value muddles that abstraction. It's not m

Re: Stupid little iota of an idea

2011-02-12 Thread Jonathan M Davis
On Saturday 12 February 2011 07:53:34 Jérôme M. Berger wrote: > Jonathan M Davis wrote: > > On Saturday 12 February 2011 02:33:12 Jeff Nowakowski wrote: > >> On 02/11/2011 11:14 PM, Jonathan M Davis wrote: > >>> If anyone tried to use iota to actually mean something as a variable > >>> or function

Re: Stupid little iota of an idea

2011-02-12 Thread Jérôme M. Berger
Jonathan M Davis wrote: > On Saturday 12 February 2011 02:33:12 Jeff Nowakowski wrote: >> On 02/11/2011 11:14 PM, Jonathan M Davis wrote: >>> If anyone tried to use iota to actually mean something as a variable >>> or function name, I'd be suggesting that they pick a better nam. >> So you're saying

Re: Stupid little iota of an idea

2011-02-12 Thread Max Samukha
On 02/12/2011 04:52 PM, Jonathan M Davis wrote: On Saturday 12 February 2011 06:21:15 bearophile wrote: Jonathan M Davis: On Saturday 12 February 2011 03:25:29 Andrei Alexandrescu wrote: And that's part of what makes it best. Agreed. If you agree on that, then you can't be a designer for a

Re: Stupid little iota of an idea

2011-02-12 Thread Jonathan M Davis
On Saturday 12 February 2011 07:34:43 Andrei Alexandrescu wrote: > On 2/12/11 8:21 AM, bearophile wrote: > > Jonathan M Davis: > >> On Saturday 12 February 2011 03:25:29 Andrei Alexandrescu wrote: > >>> And that's part of what makes it best. > >> > >> Agreed. > > > > If you agree on that, then yo

Re: Stupid little iota of an idea

2011-02-12 Thread Andrei Alexandrescu
On 2/12/11 8:21 AM, bearophile wrote: Jonathan M Davis: On Saturday 12 February 2011 03:25:29 Andrei Alexandrescu wrote: And that's part of what makes it best. Agreed. If you agree on that, then you can't be a designer for a public API. Oops. Someone stop the release of 2.052 NOW! :o) A

Re: Stupid little iota of an idea

2011-02-12 Thread Andrei Alexandrescu
On 2/12/11 8:40 AM, Andrej Mitrovic wrote: Nonsense is the part of what makes it best? This one goes in my favorite quotes bin. Better put it in that bin with quotes taken out of context. Andrei

Re: Stupid little iota of an idea

2011-02-12 Thread Andrei Alexandrescu
On 2/12/11 6:52 AM, spir wrote: On 02/12/2011 12:25 PM, Andrei Alexandrescu wrote: On 2/12/11 5:02 AM, bearophile wrote: Jonathan M Davis: interval is slightly better, but as you mention, the step value muddles that abstraction. It's not muddled enough to make it worse than iota(). "iota" h

Re: Stupid little iota of an idea

2011-02-12 Thread Jonathan M Davis
On Saturday 12 February 2011 06:21:15 bearophile wrote: > Jonathan M Davis: > > On Saturday 12 February 2011 03:25:29 Andrei Alexandrescu wrote: > > > And that's part of what makes it best. > > > > Agreed. > > If you agree on that, then you can't be a designer for a public API. I'm not saying th

Re: Stupid little iota of an idea

2011-02-12 Thread Andrej Mitrovic
Nonsense is the part of what makes it best? This one goes in my favorite quotes bin.

Re: Stupid little iota of an idea

2011-02-12 Thread bearophile
Jonathan M Davis: > On Saturday 12 February 2011 03:25:29 Andrei Alexandrescu wrote: > > And that's part of what makes it best. > > Agreed. If you agree on that, then you can't be a designer for a public API. Bye, bearophile

Re: Stupid little iota of an idea

2011-02-12 Thread spir
On 02/12/2011 02:36 PM, Jonathan M Davis wrote: With something like walk or interval, the name gives you a better idea of what it does, but it's _still_ not good enough for you to know based on the name and, since they mean something closer to what the function actually does but not quite, they r

Re: Stupid little iota of an idea

2011-02-12 Thread spir
On 02/12/2011 01:46 PM, J Chapman wrote: series Unfortunately series in maths means the sum of a sequence (at least in F, but I bet the same applies in E). Rather evokes accum/reduce/fold (for people who think at the sense in maths). Denis -- _ vita es estrany spir.wikidot.c

Re: Stupid little iota of an idea

2011-02-12 Thread Jonathan M Davis
On Saturday 12 February 2011 03:25:29 Andrei Alexandrescu wrote: > On 2/12/11 5:02 AM, bearophile wrote: > > Jonathan M Davis: > >> interval is slightly better, but as you mention, the step value muddles > >> that abstraction. > > > > It's not muddled enough to make it worse than iota(). "iota" ha

Re: Stupid little iota of an idea

2011-02-12 Thread Jonathan M Davis
On Saturday 12 February 2011 02:33:12 Jeff Nowakowski wrote: > On 02/11/2011 11:14 PM, Jonathan M Davis wrote: > > If anyone tried to use iota to actually mean something as a variable > > or function name, I'd be suggesting that they pick a better nam. > > So you're saying you don't like Andrei's

Re: Stupid little iota of an idea

2011-02-12 Thread spir
On 02/12/2011 12:25 PM, Andrei Alexandrescu wrote: On 2/12/11 5:02 AM, bearophile wrote: Jonathan M Davis: interval is slightly better, but as you mention, the step value muddles that abstraction. It's not muddled enough to make it worse than iota(). "iota" has nearly no relation with its pu

Re: Stupid little iota of an idea

2011-02-12 Thread J Chapman
series

Re: Stupid little iota of an idea

2011-02-12 Thread bearophile
Andrei: > > It's not muddled enough to make it worse than iota(). "iota" has nearly no > > relation with its purpose in Phobos. > > And that's part of what makes it best. To design APIs for other people you have to understand why this is awfully wrong. Bye, bearophile

Re: Stupid little iota of an idea

2011-02-12 Thread Jim
Andrei Alexandrescu Wrote: > On 2/11/11 7:07 AM, foobar wrote: > > Andrei Alexandrescu Wrote: > > > >> > >> I don't find the name "iota" stupid. > >> > >> Andrei > > > > Of course _you_ don't. However practically all the users _do_ find it > > poorly named, including other developers in the projec

Re: Stupid little iota of an idea

2011-02-12 Thread Andrei Alexandrescu
On 2/12/11 5:02 AM, bearophile wrote: Jonathan M Davis: interval is slightly better, but as you mention, the step value muddles that abstraction. It's not muddled enough to make it worse than iota(). "iota" has nearly no relation with its purpose in Phobos. And that's part of what makes it

Re: Stupid little iota of an idea

2011-02-12 Thread Andrei Alexandrescu
On 2/12/11 5:02 AM, bearophile wrote: Jonathan M Davis: interval is slightly better, but as you mention, the step value muddles that abstraction. It's not muddled enough to make it worse than iota(). "iota" has nearly no relation with its purpose in Phobos. genSequence is pretty much the

Re: Stupid little iota of an idea

2011-02-12 Thread spir
On 02/12/2011 12:02 PM, bearophile wrote: genSequence is pretty much the only > thing that I've been able to think of that I like at all, sequence(10,20,2) is another option, as long as "interval". Know what? I've been thinking for a while that "sequence" would be quite a good name for D ran

Re: Stupid little iota of an idea

2011-02-12 Thread bearophile
Jonathan M Davis: > interval is slightly better, but as you mention, the step value muddles that > abstraction. It's not muddled enough to make it worse than iota(). "iota" has nearly no relation with its purpose in Phobos. > genSequence is pretty much the only > thing that I've been able to

Re: Stupid little iota of an idea

2011-02-12 Thread spir
On 02/12/2011 04:49 AM, spir wrote: That page looks listing various meanings in foreign languages, but mostly stincks with the greek letter; it does not mention any sense everday sense iota actually has. Example fro fr.wiktionary: Oops, sorry for that noise, Denis -- _ vita es e

Re: Stupid little iota of an idea

2011-02-12 Thread spir
On 02/12/2011 02:40 AM, Walter Bright wrote: Andrei Alexandrescu wrote: Not all users dislike iota, and besides arguments ad populum are fallacious. Iota rocks. But have at it - vote away, and I'll be glad if a better name for iota comes about. delta Like it, but for a single step (of arbit

Re: Stupid little iota of an idea

2011-02-12 Thread Andrei Alexandrescu
On 2/12/11 3:59 AM, Christopher Nicholson-Sauls wrote: On 02/11/11 18:46, so wrote: atob(1, 6) // easy to mix things like atoi ptoq(1, 6) // rocks imo! walk(1, 6) // now you have admit this is the best. I dunno. When I see 'walk' I think of collections, not ranges. But... I don't think it'

Re: Stupid little iota of an idea

2011-02-12 Thread Andrei Alexandrescu
On 2/12/11 12:46 AM, Brad Roberts wrote: On 2/11/2011 4:07 PM, Andrei Alexandrescu wrote: On 2/11/11 8:32 AM, Daniel Gibson wrote: Am 10.02.2011 12:40, schrieb spir: Certainly, because it's /highly/ important for a community of programmers to share the same "culture". And names are the main s

Re: Stupid little iota of an idea

2011-02-12 Thread spir
On 02/12/2011 09:44 AM, "Jérôme M. Berger" wrote: spir wrote: On 02/12/2011 03:05 AM, Jonathan M Davis wrote: While iota isn't clear, it _does_ have the advantage that you're not going to _mis_understand Maybe you say this because iota does not mean anything for you (?). I can easily imagine

Re: Stupid little iota of an idea

2011-02-12 Thread Jeff Nowakowski
On 02/11/2011 11:14 PM, Jonathan M Davis wrote: If anyone tried to use iota to actually mean something as a variable or function name, I'd be suggesting that they pick a better nam. So you're saying you don't like Andrei's chosen name? ;)

Re: Stupid little iota of an idea

2011-02-12 Thread Christopher Nicholson-Sauls
On 02/12/11 04:08, Olivier Pisano wrote: > Le 12/02/11 10:36, Olivier Pisano a écrit : >> 4) I believe a function name should tell what it does. An alphabet >> letter (greek or not) is a poor indication and should be avoided. "sum" >> is a more reasonable choice than "epsilon", even if that what we

Re: Stupid little iota of an idea

2011-02-12 Thread Christopher Nicholson-Sauls
On 02/11/11 19:36, Daniel Gibson wrote: > Am 12.02.2011 02:25, schrieb bearophile: >> Michel Fortin: >> >>> No one noticed yet that the a..b:c syntax causes ambiguity? Tell me, >>> how do you rewrite this using the new proposed syntax: >>> >>> auto aa = [iota(a, b, c): 1, iota(d, e): 2]; >> >>

Re: Stupid little iota of an idea

2011-02-12 Thread Olivier Pisano
Le 12/02/11 10:36, Olivier Pisano a écrit : 4) I believe a function name should tell what it does. An alphabet letter (greek or not) is a poor indication and should be avoided. "sum" is a more reasonable choice than "epsilon", even if that what we all write in math. Damn fever, I meant Sigma,

Re: Stupid little iota of an idea

2011-02-12 Thread Christopher Nicholson-Sauls
On 02/11/11 18:46, so wrote: >> atob(1, 6) // easy to mix things like atoi >> ptoq(1, 6) // rocks imo! > > walk(1, 6) // now you have admit this is the best. I dunno. When I see 'walk' I think of collections, not ranges. But... I don't think it'd be terribly ambiguous, at least. For the record

Re: Stupid little iota of an idea

2011-02-12 Thread Olivier Pisano
Le 12/02/11 01:55, bearophile a écrit : Andrei: Not all users dislike iota, A poll will tell how much this statement is true :-) and besides arguments ad populum are fallacious. That's true for scientific and engineering (or medical, etc) things but names are not a science. The process

Re: Stupid little iota of an idea

2011-02-12 Thread Jérôme M. Berger
Jonathan M Davis wrote: > On Friday 11 February 2011 20:01:23 spir wrote: >> On 02/12/2011 03:05 AM, Jonathan M Davis wrote: >>> While iota isn't clear, it _does_ have the advantage that you're >>> not going to _mis_understand >> Maybe you say this because iota does not mean anything for you (?). I

Re: Stupid little iota of an idea

2011-02-12 Thread Jérôme M. Berger
spir wrote: > On 02/12/2011 01:55 AM, bearophile wrote: >> 4) My fourth choice is "iota". It's short and it sticks in mind. > > 'Ψ' "psi" (beeing the forelast letter of the alphabet, just before > omega, as everyone knows) would nicely suggest we're dealing with > intervals half-open on the right-

Re: Stupid little iota of an idea

2011-02-12 Thread Jérôme M. Berger
Walter Bright wrote: > Andrei Alexandrescu wrote: >> Not all users dislike iota, and besides arguments ad populum are >> fallacious. Iota rocks. But have at it - vote away, and I'll be glad >> if a better name for iota comes about. > > > delta Could be, except that this is very often used

Re: Stupid little iota of an idea

2011-02-12 Thread Jérôme M. Berger
spir wrote: > On 02/12/2011 03:05 AM, Jonathan M Davis wrote: >> While iota isn't clear, it _does_ have the advantage that you're >> not going to _mis_understand > > Maybe you say this because iota does not mean anything for you (?). I > can easily imagine various appropriate uses of iota in a PL,

Re: Stupid little iota of an idea

2011-02-11 Thread Nick Sabalausky
"Andrej Mitrovic" wrote in message news:mailman.1524.1297475525.4748.digitalmar...@puremagic.com... > On 2/12/11, Walter Bright wrote: >> Andrei Alexandrescu wrote: >>> Not all users dislike iota, and besides arguments ad populum are >>> fallacious. Iota rocks. But have at it - vote away, and I'

Re: Stupid little iota of an idea

2011-02-11 Thread Brad Roberts
On 2/11/2011 4:07 PM, Andrei Alexandrescu wrote: > On 2/11/11 8:32 AM, Daniel Gibson wrote: >> Am 10.02.2011 12:40, schrieb spir: >>> >>> Certainly, because it's /highly/ important for a community of programmers to >>> share the same "culture". And names are the main support& vehicle for this >>>

Re: Stupid little iota of an idea

2011-02-11 Thread Jonathan M Davis
On Friday 11 February 2011 20:01:23 spir wrote: > On 02/12/2011 03:05 AM, Jonathan M Davis wrote: > > While iota isn't clear, it _does_ have the advantage that you're > > not going to _mis_understand > > Maybe you say this because iota does not mean anything for you (?). I can > easily imagine var

Re: Stupid little iota of an idea

2011-02-11 Thread Daniel Gibson
Am 12.02.2011 04:49, schrieb spir: > On 02/12/2011 02:36 AM, Daniel Gibson wrote: >> Am 12.02.2011 02:25, schrieb bearophile: >>> Michel Fortin: >>> No one noticed yet that the a..b:c syntax causes ambiguity? Tell me, how do you rewrite this using the new proposed syntax: au

Re: Stupid little iota of an idea

2011-02-11 Thread spir
On 02/12/2011 03:05 AM, Jonathan M Davis wrote: While iota isn't clear, it _does_ have the advantage that you're not going to _mis_understand Maybe you say this because iota does not mean anything for you (?). I can easily imagine various appropriate uses of iota in a PL, like: * smallest re

Re: Stupid little iota of an idea

2011-02-11 Thread spir
On 02/12/2011 02:36 AM, Daniel Gibson wrote: Am 12.02.2011 02:25, schrieb bearophile: Michel Fortin: No one noticed yet that the a..b:c syntax causes ambiguity? Tell me, how do you rewrite this using the new proposed syntax: auto aa = [iota(a, b, c): 1, iota(d, e): 2]; Right, that's

Re: Stupid little iota of an idea

2011-02-11 Thread spir
On 02/12/2011 01:55 AM, bearophile wrote: 4) My fourth choice is "iota". It's short and it sticks in mind. 'Ψ' "psi" (beeing the forelast letter of the alphabet, just before omega, as everyone knows) would nicely suggest we're dealing with intervals half-open on the right-hand side. Denis -

Re: Stupid little iota of an idea

2011-02-11 Thread spir
On 02/12/2011 01:46 AM, so wrote: atob(1, 6) // easy to mix things like atoi ptoq(1, 6) // rocks imo! walk(1, 6) // now you have admit this is the best. Not bad, after all walk is a series of steps ;-) Denis -- _ vita es estrany spir.wikidot.com

Re: Stupid little iota of an idea

2011-02-11 Thread Jonathan M Davis
On Friday, February 11, 2011 17:02:18 Michel Fortin wrote: > On 2011-02-11 19:55:05 -0500, bearophile said: > > I am not going to invent a new wonderful name for it, sorry :-) My > > votes, in decreasing order of preference: > > 1) By far, a syntax like a..b:c, or missing that, a syntax like a..b

Re: Stupid little iota of an idea

2011-02-11 Thread Andrej Mitrovic
On 2/12/11, Walter Bright wrote: > Andrei Alexandrescu wrote: >> Not all users dislike iota, and besides arguments ad populum are >> fallacious. Iota rocks. But have at it - vote away, and I'll be glad if >> a better name for iota comes about. > > > delta > Now that's sexy. Makes me feel like a c

Re: Stupid little iota of an idea

2011-02-11 Thread Walter Bright
foobar wrote: Ary Manzana Wrote: According to the book "The Design of Everyday Things" the design of that function name is wrong, it's not your fault and it's not because it was 3am. When many people make mistakes with regards to the design of something it's *always* the design's fault, never

Re: Stupid little iota of an idea

2011-02-11 Thread Walter Bright
Andrei Alexandrescu wrote: Not all users dislike iota, and besides arguments ad populum are fallacious. Iota rocks. But have at it - vote away, and I'll be glad if a better name for iota comes about. delta

Re: Stupid little iota of an idea

2011-02-11 Thread Daniel Gibson
Am 12.02.2011 02:25, schrieb bearophile: > Michel Fortin: > >> No one noticed yet that the a..b:c syntax causes ambiguity? Tell me, >> how do you rewrite this using the new proposed syntax: >> >> auto aa = [iota(a, b, c): 1, iota(d, e): 2]; > > Right, that's why in another post I have said

Re: Stupid little iota of an idea

2011-02-11 Thread bearophile
Michel Fortin: > No one noticed yet that the a..b:c syntax causes ambiguity? Tell me, > how do you rewrite this using the new proposed syntax: > > auto aa = [iota(a, b, c): 1, iota(d, e): 2]; Right, that's why in another post I have said that syntax replaces most iota usages. There are s

Re: Stupid little iota of an idea

2011-02-11 Thread Daniel Gibson
Am 12.02.2011 01:46, schrieb so: >> atob(1, 6) // easy to mix things like atoi >> ptoq(1, 6) // rocks imo! > > walk(1, 6) // now you have admit this is the best. Hmm I do kind of like it.

Re: Stupid little iota of an idea

2011-02-11 Thread Michel Fortin
On 2011-02-11 19:55:05 -0500, bearophile said: I am not going to invent a new wonderful name for it, sorry :-) My votes, in decreasing order of preference: 1) By far, a syntax like a..b:c, or missing that, a syntax like a..b No one noticed yet that the a..b:c syntax causes ambiguity? Tell me

Re: Stupid little iota of an idea

2011-02-11 Thread spir
On 02/12/2011 01:26 AM, so wrote: Not all users dislike iota, and besides arguments ad populum are fallacious. Iota rocks. But have at it - vote away, and I'll be glad if a better name for iota comes about. Andrei You asked for it! atob(1, 6) // easy to mix things like atoi ptoq(1, 6) // rock

Re: Stupid little iota of an idea

2011-02-11 Thread bearophile
Andrei: > Not all users dislike iota, A poll will tell how much this statement is true :-) > and besides arguments ad populum are fallacious. That's true for scientific and engineering (or medical, etc) things but names are not a science. The process of choosing names is part of ergonomics, i

Re: Stupid little iota of an idea

2011-02-11 Thread so
atob(1, 6) // easy to mix things like atoi ptoq(1, 6) // rocks imo! walk(1, 6) // now you have admit this is the best.

Re: Stupid little iota of an idea

2011-02-11 Thread spir
On 02/12/2011 12:55 AM, Andrei Alexandrescu wrote: Not all users dislike iota, and besides arguments ad populum are fallacious. Iota rocks. But have at it - vote away, and I'll be glad if a better name for iota comes about. Proposed "interval" (which I understand as a quasi-synonym of range, ap

Re: Stupid little iota of an idea

2011-02-11 Thread so
Not all users dislike iota, and besides arguments ad populum are fallacious. Iota rocks. But have at it - vote away, and I'll be glad if a better name for iota comes about. Andrei You asked for it! atob(1, 6) // easy to mix things like atoi ptoq(1, 6) // rocks imo!

  1   2   >