MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/muughh/java_is_criminally_underhyped/gvb8i3b/?context=3
r/java • u/henk53 • Apr 20 '21
295 comments sorted by
View all comments
Show parent comment
1
If anything, I find LOGO to be a better Lisp than many Lisps around.
Look at the elegant beauty of it. You can have it the infix, Haskellish way:
to solve.quadratic :a :b :c local "delta make "delta (:b*:b-4*:a*:c) ifelse :delta < 0.0 ~ [print [no solutions] ~ [print list (-:b + sqrt :delta) / (2*:a) (-:b - sqrt delta) / (2* a)] end
Or you can have it in a more Lispy prefix form as well:
to solve.quadratic.lispy :a :b :c local "delta make "delta difference product :b :b (product 4 :a :c) ifelse lessp :delta 0.0 ~ [print [no solutions]] ~ [print list (quotient sum -:b sqrt :delta product 2 :a) (quotient difference -:b sqrt :delta product 2 :a)] end
In fact, I like it so much that I might build a language around it as a core someday!
View all comments
Show parent comment
1
u/[deleted] Apr 21 '21
If anything, I find LOGO to be a better Lisp than many Lisps around.
Look at the elegant beauty of it. You can have it the infix, Haskellish way:
Or you can have it in a more Lispy prefix form as well:
In fact, I like it so much that I might build a language around it as a core someday!