Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Think about programming if a function was immutable, or

> pure, we'd mark it as such in it's type signature

Actually, MySQL has something similar. Stored Functions can be marked as [NOT] DETERMINISTIC, to indicate that they will always return the same value given the same input.

https://dev.mysql.com/doc/refman/5.7/en/create-procedure.htm...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: