Re: If Scheme is so good why MIT drops it?

2009-07-19 Thread vippstar
On Jul 19, 9:31 pm, Frank Buss  wrote:
> fft1976 wrote:
> > How do you explain that something as inferior as Python beat Lisp in
> > the market place despite starting 40 years later.

> But maybe the most important point: The syntax looks simple compared to
> Common Lisp (much less parentheses)
hahaha.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: If Scheme is so good why MIT drops it?

2009-07-20 Thread vippstar
On Jul 20, 9:13 am, Paul Rubin  wrote:
> Steven D'Aprano  writes:
> > Besides, one can legitimately disagree that 2/3 => 0 is the wrong thing
> > to do. It's the right thing to do if you're doing integer maths.
>
> I wonder whether 2/3 => ValueError is preferable.

Not all software wants this. It shouldn't be part of the language but
rather part of your code if you need such a feature. (for instance, to
distinguish between 2/3 and divisions with 0 dividend).
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: If Scheme is so good why MIT drops it?

2009-07-20 Thread vippstar
On Jul 20, 7:50 pm, Paul Rubin <http://[email protected]> wrote:
> vippstar  writes:
> > > I wonder whether 2/3 => ValueError is preferable.
>
> > Not all software wants this. It shouldn't be part of the language but
> > rather part of your code if you need such a feature. (for instance, to
> > distinguish between 2/3 and divisions with 0 dividend).
>
> I don't see how to implement such a thing in my code,
Write a function:

  (if (< x y)
  ValueError
  (/ x y))

This will return 0 only if the dividend = 0, not in integer division x/
y with y > x, which will return ValueError. Of course, ValueError must
not be an integer, because that could be the result of an integer
division. If it's not possible to return multiple types, then the
function can make use of some error handling mechanism.

> if I believe that the ring of integers doesn't have any concept
> of division and so attempts to divide integers should be treated
> as errors.

Wouldn't that mean 3/2 would also evaluate to ValueError? But 3/2 = 1
in integer division, not 0, like 2/3. Regardless, it's a specialized
requirement, and thus should either be implemented by the programmer
or the language could provide it if it's specialized, (for instance, I
wouldn't require a language to provide text manipulation features, but
I expect them from perl because it's not a general all purpose
language [the name designates that, however it can be used as one -
like lisp])

> course the present / operator is useful, but I could do just as well
> with the divmod function which I think is more explicit.
What? Python? Aww.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: If Scheme is so good why MIT drops it?

2009-07-20 Thread vippstar
On Jul 21, 1:22 am, Paul Rubin <http://[email protected]> wrote:
> vippstar  writes:
> > > I don't see how to implement such a thing in my code,
> > Write a function:
>
> >   (if (< x y)
> >       ValueError
> >       (/ x y))
>
> I meant changing the behavior of integer division in python.
You'd either have to hack an implementation or change the standard (I
just noticed python doesn't have one).

> > Wouldn't that mean 3/2 would also evaluate to ValueError?
>
> Yes, the idea was that one can take the view that integer division
> should not be allowed except through a 'div' function or some such.
You brought up 3/2 == ValueError as a more appropriate value for the
integer division to evaluate, rather than 0. I thought you meant
specifically those kinds of divisions.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: A Exhibition Of Tech Geekers Incompetence: Emacs whitespace-mode

2009-08-14 Thread vippstar
On Aug 14, 4:36 am, Xah Lee  wrote:
> • A Exhibition Of Tech Geekers Incompetence: Emacs whitespace-mode
>  http://xahlee.org/UnixResource_dir/writ/emacs_whitespace-mode_problem...

Instead of writing a completely useless article you could had asked
for help in an emacs newsgroup, or wait until someone else does that
for you too (creating and publishing such configuration you desire).
Your article, except for the brief description of that mode, is
completely useless. Why would you fill your website with junk? Perhaps
because you like to write but you're too lazy to write something of
value.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: A Exhibition Of Tech Geekers Incompetence: Emacs whitespace-mode

2009-08-14 Thread vippstar
On Aug 14, 8:25 pm, fortunatus  wrote:
> On Aug 14, 1:01 pm, vippstar  wrote:
>
> > Why would you fill your website with junk?
>
> The OP made it clear:
>
> >Just wanted to express some frustration with whitespace-mode.

You took my question out of context and answered it. I read the
article, it's not like I missed any of it. Plus, it's not a real
answer. "Because I wanted to". Why did you? Why would you?
-- 
http://mail.python.org/mailman/listinfo/python-list