Unfuck mod
in prelude
#49
Labels
No Label
accepted
bug
clj
documentation
enhancement
errors
infrastructure
later
next
now
optimization
proposal
question
research
semantics
syntax
ux
vm
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: twc/ludus#49
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
mod (10, 5)
& err=> "I don't know how to call nil"Should: return 0
As expected: current clj/s
base
does not include a membermod
.Fix this in the janet base before building.
Done in
92a1ee9010
Turns out there was also an error with parameters and shadowing. Yay.
@scott When I test the
mod
function it prints the arguments in the web console but doesn't return the result.Try
mod(3, 6)
to see what's happening.@matt Thanks for this. It does return the result, but has the errant
print
s from debugging earlier. I've removed them from prelude ind7d9e71d67
. When I do some additional debugging, I'll rebuild the things and push a new version to npm.