Replies: 2 comments
-
I’ll admit this has never arisen as a need for me, but: do you have any thoughts as to initial directions? Copying the SRFI directly wouldn’t work since we already use curly braces. We also don’t have reader macros, for better or worse, so I suppose it’d have to be added at the language level. (Maybe the discussion should be about the feasibility of adding reader macros!) |
Beta Was this translation helpful? Give feedback.
-
I would much prefer something like an |
Beta Was this translation helpful? Give feedback.
-
Scheme has these via SRFI-105:
https://srfi.schemers.org/srfi-105/
It'd be nice for occasional math-heavy definitions. I think a decent portion of Janet users are interested or perhaps even using it for gamedev, and I would love some easier way to deal with writing custom collision code, linerp stuff, anything beyond the basic xy utilities is just kind of blinding to do using regular s-expressions.
Maybe this doesn't belong in the standard library, I'm not really sure. Even still, maybe this discussion will be able to help get more ideas about this functionality and we could organize an implementation as a jpm package.
Beta Was this translation helpful? Give feedback.
All reactions