def example ():
assert 1 + 1 is 2
assert 1 + 1 is not zero
...
assert 1 + 1 in (1, 2, 3)
assert 0 in (1, 2, 3)
assert math.pi not in (foo, bar, zot, pi)
... def example ():
assert 1 + 1 is 2
assert 1 + 1 is not zero
...
assert 1 + 1 in (1, 2, 3)
assert 0 in (1, 2, 3)
assert math.pi not in (foo, bar, zot, pi)
...You should also know that, unlike "assert" in Python, "ascertain" is not something defined by the Common Lisp language. It was defined by a Common Lisp user (me), just some 50-line macro that can be extended at will, to fit whatever clauses I would like it to support, in any way I see fit.
I'm glad that you took a stab at answering my question, but I hope you can see my point more clearly - that in Lisp you can taylor the language to suit your needs, and while sometimes Python may provide similar syntax, other times it may not. In fact many operators already existing in Common Lisp have no direct correspondence. You can also find tons more examples in the code of other people.
Anyway, hope it at least piqued your interest. Have a good day!
I didn't get what it meant, so I couldn't really try to translate something I couldn't understand.
> It was defined by a Common Lisp user (me), just some 50-line macro that can be extended at will, to fit whatever clauses I would like it to support, in any way I see fit.
I understood that after looking it up on google and finding nothing. Which is one of the reason I dislike DSL. Usually their specs resides in the head of their dev, with the unit tests.
> I hope you can see my point more clearly
I do, it's just not the point of the author. You can make lisp whatever you want, but the basic syntax has similarities that are helpful for a transition. I don't see why this bother you. Nobody try to limit the quality of lisp.
> Anyway, hope it at least piqued your interest. Have a good day!
Oh it's on my list with Erlang, Haskell and Prolog. Next to the list of books to read, food to try and habits to drop.
And you too.