Re:The Use of assert() in SQLite
by yawboakye on Saturday April 27, 2019 @05:17AM
(#19764655)
The Go compiler has `assert` and uses it for checking invariants, as mentioned in the article. I love Go, I'm down with the decisions the designers have made for the language but not exposing a proper and simplified assertion statement/expression while expecting the user to make their own doesn't sit well with me.
[ Parent
| on HN ]
Isn't go compiler written in go? Is it different version of go that has `assert`?
They already have precedence in this, having a special version of the language only the golang authors can use (e.g. generics and asserts), and then claiming that they're not useful or too complicated for others to use.