News for hackers. Stuff that matters.
Re:Why I love Common Lisp and hate Java (2012) by pytester on Sunday November 04, 2018 @05:26AM (#18375192)
>In a pure language, signatures are extremely close to documentation (you know exactly what a function will do by its signature).

The same can be true of tests. I've started generating API documentation from mine: e.g. https://hitchdev.com/strictyaml/using/alpha/scalar/email-and...

I tend to think of types and tests as attacking the same problem from opposite directions.

Re:Why I love Common Lisp and hate Java (2012) by sethammons on Sunday November 04, 2018 @08:17AM (#18375711)
> StrictYAML can validate emails (using a simplified regex)

Public Service Announcement: don't validate emails with regex. Every time you do, god kills a kitten.

Re:Why I love Common Lisp and hate Java (2012) by pytester on Sunday November 04, 2018 @08:51AM (#18375853)
Just checking for the @ symbol is fair game. Anything beyond that is a bad idea.
Re:Why I love Common Lisp and hate Java (2012) by sethammons on Sunday November 04, 2018 @02:47PM (#18377727)
Agreed :)