Re:Rackjure
by Touche on Thursday August 02, 2018 @04:01PM
(#17674949)
I guess I'm alone on this, but I want as little special syntax as possible, it's the primary thing I like about Scheme. ' ` , # <- that's enough, let's stop there. Everything else should be in an s-expression.
[ Parent
| on HN ]
Re:Rackjure
by spinningarrow on Thursday August 02, 2018 @11:05PM
(#17677032)
Clojure does have a number of sigils and special syntax, but they all seem to have s-expression alternatives. e.g. a dict can be created with {:a 1, :b 2} or (hash-map :a 1, :b 2); dereferencing an atom can be done with @a or (deref a) and so on.
Part of the joy of Racket is that you can mix and match :-)
In some cases, it allows people who like some of the Clojure syntax to still write you libraries. In other cases it allows you to move a prototype from normal Racket to Typed Racket in a piecemeal way.
In general I like the purity of scheme as well, but sometimes that little bit of syntactic sugar goes a long way. Non-Racket Schemers use macros too, and Racket’s are second to none. Use what you want and avoid the rest!
It's not special syntax just because the identifier is some symbols. If you don't like the semantics, don't use it; but it's not correct to accuse it of being "special syntax".
Edit: oh, and if you _do_ like the semantics, but hate the weird name, just give it a new name that makes sense to you.
(that-macro-from-clojure ....)
that's a pretty arbitrary stopping point, don't you think?
it's not like clojure added that much to the list: [], {} and @
but it is lightyears ahead in convenience
Well, I suggest not using anything but scheme.
Re:Rackjure
by AlexCoventry on Friday August 03, 2018 @12:56AM
(#17677364)
Downvoted for facile snark.