ocalc

Languages and libraries

interpreter

SHOW HN2015

ocalc

A Lispy Calculator in under 50 Lines of OCaml

github.com

#lisp#ocaml#calculator#interpreter

15points
5comments
#1,525of 2,565 in 2015
Top 60%of 2015 by points

How HN took it

QuietFewer than 5 comments about the project

0 positive, 2 neutral or asking, 0 mixed, 0 critical, out of 2 comments about the project.

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Useful design feedback on using an expression ADT

    From 1 comment
    • As a calculator, wouldn't it make more sense to use Num from the standard library than int? FWIW, you don't end up doing a cumbersome amount of matching if you implement a full…
      tokenrove on HN

Objections

  • Using int instead of Num is questionable for a calculator

    From 1 comment
    • As a calculator, wouldn't it make more sense to use Num from the standard library than int? FWIW, you don't end up doing a cumbersome amount of matching if you implement a full…
      tokenrove on HN

Requests

  • Use Num from the standard library for arbitrary precision

    From 1 comment
    • As a calculator, wouldn't it make more sense to use Num from the standard library than int? FWIW, you don't end up doing a cumbersome amount of matching if you implement a full…
      tokenrove on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/9270405)