Re: Lisp Design Patterns



In article <1io15qb.f1h0r11jvnak2N%wrf3@xxxxxxxxxxxxxxx>,
wrf3@xxxxxxxxxxxxxxx (Bob Felts) wrote:

Rainer Joswig <joswig@xxxxxxx> wrote:

[...]

Imagine (for a moment) you would write that in Lisp:

(defclass pizza ()
((price :type integer :accessor pizza-price)))

(defclass ham-and-mushroom-pizza (pizza)
((price :initform 8.50)))


price is of type integer? 8.50 is a float.

Yep! Please replace it with REAL. Unfortunately most (all?)
Lisp systems don't complain.

--
http://lispm.dyndns.org/
.



Relevant Pages

  • Re: Lisp Design Patterns
    ... (defclass pizza () ... ((price:type integer:accessor pizza-price))) ... (defclass ham-and-mushroom-pizza (pizza) ...
    (comp.lang.lisp)
  • Re: LW "hobbyist pricing"
    ... Offering a man 1/10th of his price carries the clear implication that either he was trying to cheat you at the old price, or you're trying to cheat him with the new one. ... Goods with low unit costs, such as software, certainly allow for greater flexibility of price and units sold, but there has never been a business yet with margins high enough that it could cut prices by 90% and still be high margin. ... I'm not denying them their daily bread, a roof over their head or medical care, and the market doesn't even deny them Lisp, because there's good, free Lisps. ... But regardless of where they've spent the discretionary thousands, it takes a lot of nerve for these people to confront software vendors with "I spent the rest on things that were more important to me. ...
    (comp.lang.lisp)
  • Re: Any Lisp financial success stories since Naughty Dog?
    ... implementing what you need using free software, ... What did you pay for your house (the selling price ... The biggest threat to the commercial lisp vendors ... where people *want* a cheap commercial implementation ...
    (comp.lang.lisp)
  • Re: nyc lisp conf: WAY too expensive! (4me) How to *turn-away* lisp-interest!
    ... > Here I was thinking that finally there's a conference ... > via lisp community. ... Because they make so much money selling this super-popular language? ... increase enrollment sufficiently to offset the lower price. ...
    (comp.lang.lisp)
  • Re: I am a new lisp user
    ... >>its limits you will realize it is worth the price. ... > is Corman Lisp, I have had limited success with it. ... produce interesting revenues from casual hobbyists. ...
    (comp.lang.lisp)