ClojureBridge/curriculum

Add a link to what a BigInt is?

Closed this issue · 3 comments

In the "Arithmetic" section, there's currently a reference to BigInts:

(* 8 1/4)     ;=> 2   ;; this produces 2N which means 2 is a BigInt.

BigInts are pretty far out of scope for a beginner-level workshop. Any feedback as to how we want to adjust this line?

I think avoiding the mention of BigInt altogether would be the way to go. But anyone who runs this will see the "2N" result and be confused. I think that rephrasing the explanation would be preferable. Here's a suggestion, but someone else can probably do better than this.

(* 8 1/4)     ;=> 2N     ;; just read this as 2 - the N is not related to anything we're doing

Or just get rid of this example altogether.

Yeah, the reason why I asked was that I didn't particularly want a reference to BigInt at all, but it's in the curriculum, so perhaps it was put there for a reason?

I'd vote for removing the reference entirely, as we're not doing anything that requires multiplying integers by ratios in the exercises (we used decimals instead of ratios). Leaving a note like you mentioned above--reworded or not--would require going back at some point in the curriculum and explaining what BigInts are, and that's also pretty far out of scope, in my opinion.

I too am in favour of removing this example.