Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Oliver Bandel <oliver@first.in-berlin.de>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Annoying behaviour of OCaml
Date: Thu, 10 Jan 2008 23:29:45 +0100	[thread overview]
Message-ID: <1200004185.47869c59a1bc4@webmail.in-berlin.de> (raw)
In-Reply-To: <447544.64925.qm@web30511.mail.mud.yahoo.com>

Zitat von David Thomas <david_hd@yahoo.com>:

>
> --- Oliver Bandel <oliver@first.in-berlin.de> wrote:
> > Even if this would be the case, not what we expect
> > is of importance, but what the documentation says.
> > If there's a difference between documentation and
> > bahaviour, then there is a bug (in the
> documentation,
> > or in the implementation, or both).
>
> I disagree that expectations are of no importance.
> Principle of least surprise and all that...
[...]

Principle of least surprise is fine.
But it depends on the view of the one
who is surprised or not.

When I start to use Blender for example,
with the principle of least surprise,
I will be very surprised not to have
the typical Windows-GUI (and KDE and such stuff)
when using it.
I could blame the developers for using completely
different ways of GUI-design, writing hate-mails to them,
why they didn't used the menues that every person expects,
when using a GUI-based application, ...
...or I could try to learn how to use and see, that
it's the best GUI (IMHO), that was ever invented.

Or there are expectations to three mouse-buttons and
for a long time the expectation was, that only the
left button has to be used; since a while the right one
also became popular, and later then the middle button.

But some years ago I wanted to provide a GUI as frontend to
sendfile; I used left button for "add file", right
for "remove file" (or other way around, don't know).
The sendmail developer than said, this is against
the expectations, so he would not encourage it.

To go that way every time IMHO is nonsesne...
...expectations can (and WILL) be changed by the
programs that people use. Habituating to them
means changing the expectations.

Expectations are based on habits.
And habits can change (even if sometimes slowly).



OK, this is not OCaml-discussion, but you started an abstract
discussion, so I can use the arguments on other software too.


> Violation
> of expectations is a bug not in documentation or
> implementation, but design.  That said, there may very
> well be overriding concerns that force us to introduce
> behavior contrary to expectations in certain instances
> - it's one guideline of many.

So, OK, then these "overridings" are at work here. ;-)

When one knows them, this is OK, IMHO.
The perfect world can possibly be found at http://www.haskell.org/

I'm now very habituated to OCaml. And it's "imperfection"
(compared to Haskell) is a plus for me, because I like the
multi-paradigm way.

I also have moaned about non-functional strings
years ago (when starting with OCaml), but now my expectations have
been ocamlized ;-) and today it's ok for me. There are good reasons for
them and I could go to the Haskell-universe if I don't want them.
And I didn't had problems with the imparative strings so far,
so my experiences confirmed the design of OCaml.
This might be different for other people, depending on needs and
expectations ;-) (needs might also be habituated).

And if compare does not fit the needs, one can write special
compare-functions. I'm sure, in OCaml, this can be done with
a hand of lines of Code.

Ciao,
   Oliver


  reply	other threads:[~2008-01-10 22:29 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-10 14:52 Thomas Fischbacher
2008-01-10 15:00 ` [Caml-list] " Jean-Christophe Filliâtre
2008-01-10 15:07 ` Berke Durak
2008-01-10 15:20 ` Eric Cooper
2008-01-10 15:29   ` Brian Hurt
2008-01-10 15:47     ` Thomas Fischbacher
2008-01-10 17:33       ` Christophe Raffalli
2008-01-10 20:07       ` Oliver Bandel
2008-01-10 21:52         ` David Thomas
2008-01-10 22:29           ` Oliver Bandel [this message]
2008-01-10 22:55             ` David Thomas
2008-01-10 23:02               ` Oliver Bandel
2008-01-10 23:00           ` Oliver Bandel
2008-01-10 15:32   ` Thomas Fischbacher
2008-01-10 19:49   ` Oliver Bandel
2008-01-10 19:48 ` Oliver Bandel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1200004185.47869c59a1bc4@webmail.in-berlin.de \
    --to=oliver@first.in-berlin.de \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox